diff options
| author | Katsumi Yamaoka | 2014-10-27 22:51:18 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2014-10-27 22:51:18 +0000 |
| commit | 7515423bc1935efeb43a85097e00f8758a7cc394 (patch) | |
| tree | 84da2b2d66fcf04b3a1b0c1fdacff3b03ce6dc75 | |
| parent | b13ccfca85d1751050fcfd7f94a7304a51ba93e7 (diff) | |
| download | emacs-7515423bc1935efeb43a85097e00f8758a7cc394.tar.gz emacs-7515423bc1935efeb43a85097e00f8758a7cc394.zip | |
[Backport] 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)
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus.el | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 534ac3af69d..e659e983392 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-10-27 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus.el (gnus-mode-line-buffer-identification): | ||
| 4 | Don't add image data for a non-graphic display; | ||
| 5 | Don't shadow load-path, it blocks autoloading of find-image (bug#18813). | ||
| 6 | |||
| 1 | 2014-10-27 enami tsugutomo <tsugutomo.enami@jp.sony.com> | 7 | 2014-10-27 enami tsugutomo <tsugutomo.enami@jp.sony.com> |
| 2 | 8 | ||
| 3 | * nnimap.el (nnimap-wait-for-response): Ignore NOOP response requested | 9 | * nnimap.el (nnimap-wait-for-response): Ignore NOOP response requested |
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el index b1d60de93d9..56b749f6527 100644 --- a/lisp/gnus/gnus.el +++ b/lisp/gnus/gnus.el | |||
| @@ -328,8 +328,9 @@ be set in `.emacs' instead." | |||
| 328 | (if (fboundp 'find-image) | 328 | (if (fboundp 'find-image) |
| 329 | (defun gnus-mode-line-buffer-identification (line) | 329 | (defun gnus-mode-line-buffer-identification (line) |
| 330 | (let ((str (car-safe line)) | 330 | (let ((str (car-safe line)) |
| 331 | (load-path (mm-image-load-path))) | 331 | (load-path (append (mm-image-load-path) load-path))) |
| 332 | (if (and (stringp str) | 332 | (if (and (display-graphic-p) |
| 333 | (stringp str) | ||
| 333 | (string-match "^Gnus:" str)) | 334 | (string-match "^Gnus:" str)) |
| 334 | (progn (add-text-properties | 335 | (progn (add-text-properties |
| 335 | 0 5 | 336 | 0 5 |