higher-level functions.
+** image-mode
+
+*** image-mode started using ImageMagick by default for all images
+some years back. It now respects `imagemagick-types-inhibit' as a way
+to disable that.
+
+
+++
** The new function 'read-answer' accepts either long or short answers
depending on the new customizable variable 'read-answer-short'.
(edges (and (null image-transform-resize)
(window-inside-pixel-edges
(get-buffer-window (current-buffer)))))
- (type (if (fboundp 'imagemagick-types)
+ (type (if (image--imagemagick-wanted-p filename)
'imagemagick
(image-type file-or-data nil data-p)))
(image (if (not edges)
(if (called-interactively-p 'any)
(message "Repeat this command to go back to displaying the file as text"))))
+(defun image--imagemagick-wanted-p (filename)
+ (and (fboundp 'imagemagick-types)
+ (not (eq imagemagick-types-inhibit t))
+ (not (memq (intern (upcase (file-name-extension filename)) obarray)
+ imagemagick-types-inhibit))))
+
(defun image-toggle-hex-display ()
"Toggle between image and hex display."
(interactive)