]> git.eshelyaron.com Git - emacs.git/commitdiff
[Backport] gnus.el (gnus-mode-line-buffer-identification):
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 27 Oct 2014 22:51:18 +0000 (22:51 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 27 Oct 2014 22:51:18 +0000 (22:51 +0000)
Don't add image data for a non-graphic display;
Don't shadow load-path, it blocks autoloading of find-image (bug#18813)

lisp/gnus/ChangeLog
lisp/gnus/gnus.el

index 534ac3af69d55c502089c6ddfc40dc39d5a2d9c3..e659e9833921b036a051b4a731ed38528427a0cd 100644 (file)
@@ -1,3 +1,9 @@
+2014-10-27  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus.el (gnus-mode-line-buffer-identification):
+       Don't add image data for a non-graphic display;
+       Don't shadow load-path, it blocks autoloading of find-image (bug#18813).
+
 2014-10-27  enami tsugutomo  <tsugutomo.enami@jp.sony.com>
 
        * nnimap.el (nnimap-wait-for-response): Ignore NOOP response requested
index b1d60de93d99a999f5618e8cda763bd78c478fb6..56b749f65272a38f7f723d598bc4f874e9af4fcf 100644 (file)
@@ -328,8 +328,9 @@ be set in `.emacs' instead."
   (if (fboundp 'find-image)
       (defun gnus-mode-line-buffer-identification (line)
        (let ((str (car-safe line))
-             (load-path (mm-image-load-path)))
-         (if (and (stringp str)
+             (load-path (append (mm-image-load-path) load-path)))
+         (if (and (display-graphic-p)
+                  (stringp str)
                   (string-match "^Gnus:" str))
              (progn (add-text-properties
                      0 5