]> git.eshelyaron.com Git - emacs.git/commit
Default exotic image formats (like .webp) to image-mode
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 29 Oct 2019 20:42:33 +0000 (21:42 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 29 Oct 2019 20:42:39 +0000 (21:42 +0100)
commit19c98f762092adab01bf35d4b0c958af7d4ea59e
tree7740857748d7b0d916593181762f26db1719e62d
parent1997e3b80f1046d789c4120d50e0f1dde05e7a74
Default exotic image formats (like .webp) to image-mode

* doc/lispref/errors.texi (Standard Errors): Mention the new error.

* lisp/files.el (auto-mode-alist): Add a bunch of image suffixes
to the list (bug#37972) based on the output from "gm convert -list
format" (i.e., graphicsmagick).

* lisp/image-mode.el (image-mode): Rewrite to possibly notify the
user about image-use-external-converter.
(image-mode--setup-mode): Factor out into own function and don't
run under `condition-case' as there's nothing here that should
error.

* lisp/image.el (unknown-image-type): New error.
(image-type): Signal that error so that image-mode can offer
sensible feedback to the user.
doc/lispref/errors.texi
etc/NEWS
lisp/files.el
lisp/image-mode.el
lisp/image.el