1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 16:51:06 -07:00

Simplify previous change (auto can only be non-nil if type is).

This commit is contained in:
Glenn Morris 2007-09-27 16:41:34 +00:00
parent 2092ac41d6
commit d567be222c

View file

@ -348,7 +348,7 @@ non-nil value. If that value is non-nil, but not t, then the image type
must be available."
(let* ((type (image-type-from-buffer))
(auto (and type (cdr (assq type image-type-auto-detectable)))))
(and type auto
(and auto
(or (eq auto t) (image-type-available-p type)))))