Just return the image directories, not all directories in the path in addition to...
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 3 Sep 2010 23:54:51 +0000 (01:54 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 3 Sep 2010 23:54:51 +0000 (01:54 +0200)
lisp/ChangeLog
lisp/mm-util.el

index 6abd2c6..45c798b 100644 (file)
@@ -1,7 +1,10 @@
 2010-09-03  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * mm-util.el (mm-image-load-path): Just return the image directories,
+       not all directories in the path in addition to the image directories.
+
        * gnus-html.el (gnus-html-put-image): Allow images to be removed.
-       (gnus-html-wash-tags): Add a new `i' command to insert images. 
+       (gnus-html-wash-tags): Add a new `i' command to insert images.
        (gnus-html-insert-image): New command and keystroke.
        (gnus-html-redisplay-with-images): New command and keystroke.
        (gnus-html-show-images): Renamed command.
index da5d96d..8808b0b 100644 (file)
@@ -1431,14 +1431,14 @@ If SUFFIX is non-nil, add that at the end of the file name."
 
 (defun mm-image-load-path (&optional package)
   (let (dir result)
-    (dolist (path load-path (nreverse result))
+    (dolist (path load-path)
       (when (and path
                 (file-directory-p
                  (setq dir (concat (file-name-directory
                                     (directory-file-name path))
                                    "etc/images/" (or package "gnus/")))))
-       (push dir result))
-      (push path result))))
+       (push dir result)))
+    (nreverse result)))
 
 ;; Fixme: This doesn't look useful where it's used.
 (if (fboundp 'detect-coding-region)