Subject: Re: bug#18204: 24.4.50; `ediff-file-compressed-p'

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 30 Apr 2016 02:38:01 +0200

Drew Adams <[email-masked]> writes:

> Could be improved from this:
>
> (defun ediff-file-compressed-p (file)
>   (condition-case nil
>       (require 'jka-compr)
>     (error))
>   (if (featurep 'jka-compr)
>       (string-match (jka-compr-build-file-regexp) file)))
>
> to this:
>
> (defun ediff-file-compressed-p (file)
>   (and (require 'jka-compr nil t)
>        (string-match-p (jka-compr-build-file-regexp) file)))

Probably written that way for backwards compatibility.

I've now simplified it.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no