unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: tsugutomo.enami@jp.sony.com
Cc: 18813@debbugs.gnu.org
Subject: bug#18813: 25.0.50; gnus start fails unless image.el is loaded in advance.
Date: Mon, 27 Oct 2014 12:52:25 +0900	[thread overview]
Message-ID: <b4mzjcixj7q.fsf@jpl.org> (raw)
In-Reply-To: <tkrvbnaf05k.fsf@sigxcpu.sm.sony.co.jp>

On Mon, 27 Oct 2014 12:31:01 +0900, Katsumi Yamaoka wrote:
> I see.  The image data are definitely unnecessary for a non-graphic
> display, so I'll add (display-graphic-p) to the tests.

I've added it within the gnus-mode-line-buffer-identification
function, since it should return image data when it is called in
a graphic display even if Gnus starts in a non-graphic display.

--- a/lisp/gnus.el
+++ b/lisp/gnus.el
@@ -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)))
-	  (if (and (stringp str)
+	  (if (and (display-graphic-p)
+		   (stringp str)
 		   (string-match "^Gnus:" str))
 	      (progn (add-text-properties
 		      0 5





  reply	other threads:[~2014-10-27  3:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-24  6:32 bug#18813: 25.0.50; gnus start fails unless image.el is loaded in advance enami tsugutomo
2014-10-24  8:35 ` Katsumi Yamaoka
2014-10-26 23:03   ` tsugutomo.enami
2014-10-27  0:28     ` Katsumi Yamaoka
2014-10-27  1:57       ` tsugutomo.enami
2014-10-27  3:31         ` Katsumi Yamaoka
2014-10-27  3:52           ` Katsumi Yamaoka [this message]
2014-10-27  3:41       ` Eli Zaretskii
2014-10-27  3:56         ` Katsumi Yamaoka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4mzjcixj7q.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=18813@debbugs.gnu.org \
    --cc=tsugutomo.enami@jp.sony.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).