Autoload image-converter-add-handler
* lisp/image/image-converter.el (image-converter-add-handler): Autoload.
This commit is contained in:
parent
3b802f029e
commit
cbe9a55923
2 changed files with 7 additions and 0 deletions
6
etc/NEWS
6
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
|
||||
|
||||
+++
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue