diff options
| author | Joakim Verona | 2010-06-14 11:16:39 +0200 |
|---|---|---|
| committer | Joakim Verona | 2010-06-14 11:16:39 +0200 |
| commit | 69fd80388b70ccb8ea04dd3ff046c56672243ffa (patch) | |
| tree | 578ce27c7401043512e9b28da7bd364aef9fb74c | |
| parent | 431dab046cf9d7360d393a6dc2f1cac369cebe8f (diff) | |
| download | emacs-69fd80388b70ccb8ea04dd3ff046c56672243ffa.tar.gz emacs-69fd80388b70ccb8ea04dd3ff046c56672243ffa.zip | |
changed looping according to feedback from stefan monnier
| -rw-r--r-- | lisp/image.el | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/lisp/image.el b/lisp/image.el index 57e980c0afd..b9cb2067245 100644 --- a/lisp/image.el +++ b/lisp/image.el | |||
| @@ -697,21 +697,17 @@ shall be displayed." | |||
| 697 | ;;;###autoload | 697 | ;;;###autoload |
| 698 | (defun imagemagick-register-types () | 698 | (defun imagemagick-register-types () |
| 699 | "Register file types that imagemagick is able to handle." | 699 | "Register file types that imagemagick is able to handle." |
| 700 | (let ((im-types (imagemagick-types)) | 700 | (let ((im-types (imagemagick-types))) |
| 701 | (im-inhibit imagemagick-types-inhibit)) | 701 | (dolist im-inhibit |
| 702 | (while im-inhibit | 702 | (setq im-types (remove im-inhibit im-types))) |
| 703 | (setq im-types (remove (car im-inhibit) im-types)) | 703 | (dolist im-type im-types |
| 704 | (setq im-inhibit (cdr im-inhibit))) | 704 | (let ((extension (downcase (symbol-name im-type)))) |
| 705 | (while im-types | ||
| 706 | (let | ||
| 707 | ((extension (downcase (symbol-name (car im-types))))) | ||
| 708 | (push | 705 | (push |
| 709 | (cons (concat "\\." extension "\\'") 'image-mode) | 706 | (cons (concat "\\." extension "\\'") 'image-mode) |
| 710 | auto-mode-alist) | 707 | auto-mode-alist) |
| 711 | (push | 708 | (push |
| 712 | (cons (concat "\\." extension "\\'") 'imagemagick) | 709 | (cons (concat "\\." extension "\\'") 'imagemagick) |
| 713 | image-type-file-name-regexps) | 710 | image-type-file-name-regexps))))) |
| 714 | (setq im-types (cdr im-types)))))) | ||
| 715 | 711 | ||
| 716 | 712 | ||
| 717 | 713 | ||