diff options
| author | Kenichi Handa | 2010-08-25 14:15:20 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2010-08-25 14:15:20 +0900 |
| commit | 4e603db3429957e6b26953c177f00a9c9d1c8766 (patch) | |
| tree | 8206240e3006468bff9dfda5fb3696f80fbcb9f0 /lisp/image.el | |
| parent | b60f961f6cdc1095e778ad624657bb57788512af (diff) | |
| parent | f6aa6ec68ed936800ef2c3aefa42102e60b654cb (diff) | |
| download | emacs-4e603db3429957e6b26953c177f00a9c9d1c8766.tar.gz emacs-4e603db3429957e6b26953c177f00a9c9d1c8766.zip | |
merge trunk
Diffstat (limited to 'lisp/image.el')
| -rw-r--r-- | lisp/image.el | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lisp/image.el b/lisp/image.el index 4a68b4999ea..93cc92ef264 100644 --- a/lisp/image.el +++ b/lisp/image.el | |||
| @@ -694,6 +694,27 @@ shall be displayed." | |||
| 694 | (cons images tmo)))))) | 694 | (cons images tmo)))))) |
| 695 | 695 | ||
| 696 | 696 | ||
| 697 | (defcustom imagemagick-types-inhibit | ||
| 698 | '(C HTML HTM TXT PDF) | ||
| 699 | "Types the imagemagick loader should not try to handle.") | ||
| 700 | |||
| 701 | ;;;###autoload | ||
| 702 | (defun imagemagick-register-types () | ||
| 703 | "Register file types that imagemagick is able to handle." | ||
| 704 | (let ((im-types (imagemagick-types))) | ||
| 705 | (dolist (im-inhibit imagemagick-types-inhibit) | ||
| 706 | (setq im-types (remove im-inhibit im-types))) | ||
| 707 | (dolist (im-type im-types) | ||
| 708 | (let ((extension (downcase (symbol-name im-type)))) | ||
| 709 | (push | ||
| 710 | (cons (concat "\\." extension "\\'") 'image-mode) | ||
| 711 | auto-mode-alist) | ||
| 712 | (push | ||
| 713 | (cons (concat "\\." extension "\\'") 'imagemagick) | ||
| 714 | image-type-file-name-regexps))))) | ||
| 715 | |||
| 716 | |||
| 717 | |||
| 697 | (provide 'image) | 718 | (provide 'image) |
| 698 | 719 | ||
| 699 | ;; arch-tag: 8e76a07b-eb48-4f3e-a7a0-1a7ba9f096b3 | 720 | ;; arch-tag: 8e76a07b-eb48-4f3e-a7a0-1a7ba9f096b3 |