Commit 399653d6 authored by Glenn Morris's avatar Glenn Morris
Browse files

Tiny image.el fixes.

* lisp/image.el (imagemagick-types-inhibit): Add :type, :version, :group.
(imagemagick-register-types): Doc fix.
parent 8740c12d
2010-09-09 Glenn Morris <>
* image.el (imagemagick-types-inhibit): Add :type, :version, :group.
(imagemagick-register-types): Doc fix.
2010-09-08 Stefan Monnier <>
* progmodes/octave-mod.el (electric-indent-chars): Silence bytecomp.
......@@ -697,21 +697,28 @@ shall be displayed."
(defcustom imagemagick-types-inhibit
"Types the imagemagick loader should not try to handle.")
;; FIXME what are the possible options?
;; Are these actually file-name extensions?
;; Why are these upper-case when eg image-types is lower-case?
"Types the ImageMagick loader should not try to handle."
:type '(choice (const :tag "Let ImageMagick handle all the types it can" nil)
(repeat symbol))
:version "24.1"
:group 'image)
(defun imagemagick-register-types ()
"Register file types that imagemagick is able to handle."
"Register the file types that ImageMagick is able to handle."
(let ((im-types (imagemagick-types)))
(dolist (im-inhibit imagemagick-types-inhibit)
(setq im-types (remove im-inhibit im-types)))
(dolist (im-type im-types)
(let ((extension (downcase (symbol-name im-type))))
(cons (concat "\\." extension "\\'") 'image-mode)
(cons (concat "\\." extension "\\'") 'image-mode)
(cons (concat "\\." extension "\\'") 'imagemagick)
(cons (concat "\\." extension "\\'") 'imagemagick)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment