gnus.el (gnus-mode-line-buffer-identification): Don't add image data for a non-graphi...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 27 Oct 2014 03:51:08 +0000 (03:51 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 27 Oct 2014 03:51:08 +0000 (03:51 +0000)
lisp/ChangeLog
lisp/gnus.el

index f37fe23..ad98a15 100644 (file)
@@ -1,3 +1,8 @@
+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 (bug#18813).
+
 2014-10-24  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus.el (gnus-mode-line-buffer-identification): Don't shadow
 2014-10-24  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus.el (gnus-mode-line-buffer-identification): Don't shadow
index b11b397..605882c 100644 (file)
@@ -327,7 +327,8 @@ be set in `.emacs' instead."
       (defun gnus-mode-line-buffer-identification (line)
        (let ((str (car-safe line))
              (load-path (append (mm-image-load-path) load-path)))
       (defun gnus-mode-line-buffer-identification (line)
        (let ((str (car-safe line))
              (load-path (append (mm-image-load-path) load-path)))
-         (if (and (stringp str)
+         (if (and (display-graphic-p)
+                  (stringp str)
                   (string-match "^Gnus:" str))
              (progn (add-text-properties
                      0 5
                   (string-match "^Gnus:" str))
              (progn (add-text-properties
                      0 5