From: Lars Ingebrigtsen Date: Tue, 12 Jul 2022 23:39:55 +0000 (+0200) Subject: Autoload image-converter-add-handler X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~1886^2~975 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cbe9a55923601e4dcfd8538488723094cd7a7cac;p=emacs.git Autoload image-converter-add-handler * lisp/image/image-converter.el (image-converter-add-handler): Autoload. --- diff --git a/etc/NEWS b/etc/NEWS index c2900b0bc4c..9f302bdfb5f 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1709,6 +1709,12 @@ this message for SVG and XPM. *** New commands: 'image-flip-horizontally' and 'image-flip-vertically'. These commands horizontally and vertically flip the image under point. +** Images + ++++ +*** Users can now add special image conversion functions. +This is done via 'image-converter-add-handler'. + ** Image-Dired +++ diff --git a/lisp/image/image-converter.el b/lisp/image/image-converter.el index 0c189af8e5a..ed3ba49071a 100644 --- a/lisp/image/image-converter.el +++ b/lisp/image/image-converter.el @@ -306,6 +306,7 @@ Only suffixes that map to `image-mode' are returned." "-"))))) "ffmpeg error when converting"))) +;;;###autoload (defun image-converter-add-handler (suffix converter) "Make Emacs use CONVERTER to parse image files that end with SUFFIX. CONVERTER is a function with one parameter, the file name. The