aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-10-29 21:42:33 +0100
committerLars Ingebrigtsen2019-10-29 21:42:39 +0100
commit19c98f762092adab01bf35d4b0c958af7d4ea59e (patch)
tree7740857748d7b0d916593181762f26db1719e62d /doc
parent1997e3b80f1046d789c4120d50e0f1dde05e7a74 (diff)
downloademacs-19c98f762092adab01bf35d4b0c958af7d4ea59e.tar.gz
emacs-19c98f762092adab01bf35d4b0c958af7d4ea59e.zip
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/errors.texi3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lispref/errors.texi b/doc/lispref/errors.texi
index 45e7acbaa6b..cf9b67c80d8 100644
--- a/doc/lispref/errors.texi
+++ b/doc/lispref/errors.texi
@@ -215,6 +215,9 @@ The message is @samp{Wrong number of arguments}. @xref{Argument List}.
215 215
216@item wrong-type-argument 216@item wrong-type-argument
217The message is @samp{Wrong type argument}. @xref{Type Predicates}. 217The message is @samp{Wrong type argument}. @xref{Type Predicates}.
218
219@item unknown-image-type
220The message is @samp{Cannot determine image type}. @xref{Images}.
218@end table 221@end table
219 222
220@ignore The following seem to be unused now. 223@ignore The following seem to be unused now.