From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 24 02:43:10 2014 Received: (at submit) by debbugs.gnu.org; 24 Oct 2014 06:43:10 +0000 Received: from localhost ([127.0.0.1]:33443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XhYab-0007OD-Pg for submit@debbugs.gnu.org; Fri, 24 Oct 2014 02:43:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47126) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XhYaY-0007Ng-2w for submit@debbugs.gnu.org; Fri, 24 Oct 2014 02:43:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhYaN-00022r-5t for submit@debbugs.gnu.org; Fri, 24 Oct 2014 02:43:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhYaN-00022n-2V for submit@debbugs.gnu.org; Fri, 24 Oct 2014 02:42:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhYaH-0007ZB-Eu for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2014 02:42:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhYaB-0001wU-W3 for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2014 02:42:49 -0400 Received: from ms13.sony.co.jp ([2001:cf8:0:57::230]:60669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhYaB-0001vF-HJ for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2014 02:42:43 -0400 Received: from ms6.sony.co.jp (ms6.sony.co.jp [IPv6:2001:cf8:0:56::204]) by ms13.sony.co.jp (R8/Sony) with ESMTP id s9O6gekS029067 for ; Fri, 24 Oct 2014 15:42:40 +0900 (JST) Received: from mta6.noc.sony.co.jp ([IPv6:2001:cf8:0:192::43]) by ms6.sony.co.jp (R8/Sony) with ESMTP id s9O6gbK1006004 for ; Fri, 24 Oct 2014 15:42:37 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.04,778,1406559600"; d="scan'208";a="42322656" Received: from sigxcpu.sm.sony.co.jp ([43.4.4.150]) by mrelay6.noc.sony.co.jp with ESMTP; 24 Oct 2014 15:42:37 +0900 Received: by sigxcpu.sm.sony.co.jp (Postfix, from userid 8324) id 37F4C2DF7C; Fri, 24 Oct 2014 15:32:23 +0900 (JST) From: enami tsugutomo To: bug-gnu-emacs@gnu.org Subject: 25.0.50; gnus start fails unless image.el is loaded in advance. Date: Fri, 24 Oct 2014 15:32:23 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi, gnus start (i.e. M-x gnus) fails unless image.el is loaded in advance. Here is a backtrace (with through cat -v and some sensitive data is replaced with `...'). It looks like gnus-mode-line-buffer-identification shadows load-path. Debugger entered--Lisp error: (file-error "Cannot open load file" "No such file or directory" "image") find-image(((:type xpm :file "gnus-pointer.xpm" :ascent center) (:type xbm :file "gnus-pointer.xbm" :ascent center))) gnus-mode-line-buffer-identification(("Gnus: %b {nntp:news}")) gnus-group-set-mode-line() gnus-dribble-enter("") gnus-dribble-touch() gnus-read-active-for-groups((nnimap "rplaca.sm.sony.co.jp" (nnimap-inbox "INBOX") (nnimap-split-methods (quote nnmail-split-fancy))) ... ((546 qresync nil "mail-lists.nsd-asunaro-sw" qresync))) gnus-get-unread-articles(nil nil) gnus-setup-news(nil nil nil) byte-code("^H\204^N^@ \204^N^@\306 \210\202L^@\307\310!\210\311\n!^S\f\204^^^@^M\203!^@\312 \210\313\314^N^X^H#\210\307\315!\210^N^Y\2036^@\316\317\320\"\210\321 \210\322^N^X!\210\323 \210\324\325!\210\326 \210\307\327!\210\314\207" [dont-connect did-connect gnus-startup-file gnus-current-startup-file gnus-slave gnus-use-dribble-file gnus-group-quit gnus-run-hooks gnus-startup-hook gnus-make-newsrc-file gnus-dribble-read-file gnus-setup-news nil gnus-setup-news-hook gnus-request-create-group "queue" (nndraft "") gnus-start-draft-setup gnus-group-list-groups gnus-group-first-unread-group gnus-configure-windows group gnus-group-set-mode-line gnus-started-hook level gnus-agent] 4) gnus-1(nil nil nil) gnus(nil) funcall-interactively(gnus nil) call-interactively(gnus record nil) command-execute(gnus record) execute-extended-command(nil "gnus") funcall-interactively(execute-extended-command nil "gnus") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) In GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu) of 2014-10-24 on sigabrt Repository revision: 118187 monnier@iro.umontreal.ca-20141023214436-ejbbgqri83hnqnmf System Description: Ubuntu 14.04.1 LTS Configured using: `configure --with-x=no' Configured features: SOUND NOTIFY ZLIB Important settings: value of $LANG: C locale-coding-system: nil Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t file-name-shadow-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Recent input: RET n ESC x l o a d SPC l i RET d e b u g TAB RET ESC x s e t SPC v a TAB RET d e b u g - o n SPC e r TAB RET t RET ESC x g n u s RET y ESC x l o a d SPC l i b TAB RET h e l p - m o d e RET ESC x g n u s RET y C-x h ESC w ESC x e DEL r e p o SPC r TAB RET ESC w q ESC x r e p o TAB r TAB RET Recent messages: Opening connection to rplaca.sm.sony.co.jp...done nnimap rplaca.sm.sony.co.jp splitting mail... nnimap read 0k from rplaca.sm.sony.co.jp nnimap rplaca.sm.sony.co.jp splitting mail...done Entering debugger... Mark set [2 times] Making completion list... command-execute: Cannot open load file: No such file or directory, emacsbug Back to top level Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail help-mode cus-edit cus-start cus-load debug regexp-opt utf-7 nndraft nnmh rfc2104 network-stream auth-source cl-macs gv eieio byte-opt bytecomp byte-compile cconv eieio-core starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime password-cache dig mailcap nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader gnus-util mail-utils mm-util help-fns mail-prsvr wid-edit cl-loaddefs cl-lib time-date japan-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process inotify multi-tty emacs) Memory information: ((conses 16 302720 43408) (symbols 48 26593 0) (miscs 40 91 113) (strings 32 39793 4599) (string-bytes 1 1274215) (vectors 16 18590) (vector-slots 8 535542 7646) (floats 8 225 313) (intervals 56 242 51) (buffers 976 23) (heap 1024 33799 4482)) From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 24 04:35:49 2014 Received: (at 18813-done) by debbugs.gnu.org; 24 Oct 2014 08:35:50 +0000 Received: from localhost ([127.0.0.1]:33473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XhaLd-00032r-HF for submit@debbugs.gnu.org; Fri, 24 Oct 2014 04:35:49 -0400 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:44481 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XhaLb-00032c-1L for 18813-done@debbugs.gnu.org; Fri, 24 Oct 2014 04:35:47 -0400 Received: from localhost.localdomain ([127.0.0.1]:44741 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.82) (envelope-from ) id 1XhaLT-001WUe-KL; Fri, 24 Oct 2014 03:35:40 -0500 Date: Fri, 24 Oct 2014 17:35:43 +0900 Message-ID: From: Katsumi Yamaoka To: tsugutomo.enami@jp.sony.com Subject: Re: bug#18813: 25.0.50; gnus start fails unless image.el is loaded in advance. References: Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130012 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.12) Emacs/25.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:ibV/+7AqkJwpBmWIQNV6srCgoiQ= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: acl_c_authenticated_local_user: yamaoka X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18813-done Cc: 18813-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Fri, 24 Oct 2014 15:32:23 +0900, enami tsugutomo wrote: > gnus start (i.e. M-x gnus) fails unless image.el is loaded in advance. > Here is a backtrace (with through cat -v and some sensitive data is > replaced with `...'). It looks like > gnus-mode-line-buffer-identification shadows load-path. Enami-san, thanks for tracking it down. I've changed the function in question as follows: --- a/lisp/gnus.el +++ b/lisp/gnus.el @@ -326,7 +326,7 @@ 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))) + (load-path (append (mm-image-load-path) load-path))) (if (and (stringp str) (string-match "^Gnus:" str)) (progn (add-text-properties I think it would not be a matter even if it causes finding another gnus-pointer. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 26 19:13:47 2014 Received: (at 18813-done) by debbugs.gnu.org; 26 Oct 2014 23:13:47 +0000 Received: from localhost ([127.0.0.1]:36254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiX0M-0008Qp-FF for submit@debbugs.gnu.org; Sun, 26 Oct 2014 19:13:46 -0400 Received: from ms6.sony.co.jp ([211.125.136.204]:47818) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiX0I-0008QT-OB for 18813-done@debbugs.gnu.org; Sun, 26 Oct 2014 19:13:44 -0400 Received: from mta5.noc.sony.co.jp ([IPv6:2001:cf8:0:192::42]) by ms6.sony.co.jp (R8/Sony) with ESMTP id s9QNDXrY001547 for <18813-done@debbugs.gnu.org>; Mon, 27 Oct 2014 08:13:34 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.04,792,1406559600"; d="scan'208";a="42111114" Received: from sigxcpu.sm.sony.co.jp ([43.4.4.150]) by mrelay5.noc.sony.co.jp with ESMTP; 27 Oct 2014 08:13:34 +0900 Received: by sigxcpu.sm.sony.co.jp (Postfix, from userid 8324) id 8E28E2DF7C; Mon, 27 Oct 2014 08:03:15 +0900 (JST) From: tsugutomo.enami@jp.sony.com To: Katsumi Yamaoka Subject: Re: bug#18813: 25.0.50; gnus start fails unless image.el is loaded in advance. References: Date: Mon, 27 Oct 2014 08:03:15 +0900 In-Reply-To: (Katsumi Yamaoka's message of "Fri, 24 Oct 2014 17:35:43 +0900") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 18813-done Cc: 18813-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, I wonder why it works for other people for a while and found gnus-group-startup-message forces find-image to be loaded when necessary. Katsumi Yamaoka writes: > Enami-san, thanks for tracking it down. I've changed the function > in question as follows: > > --- a/lisp/gnus.el > +++ b/lisp/gnus.el > @@ -326,7 +326,7 @@ be set in `.emacs' instead." > (if (fboundp 'find-image) So, I guess alternative way is changing the above test to (and (fboundp 'find-image) (display-graphic-p)) like gnus-group-startup-message does. I'm not sure which one is better. enami. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 26 20:28:20 2014 Received: (at 18813-done) by debbugs.gnu.org; 27 Oct 2014 00:28:20 +0000 Received: from localhost ([127.0.0.1]:36273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiYAV-0001o0-RV for submit@debbugs.gnu.org; Sun, 26 Oct 2014 20:28:20 -0400 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:43102 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiYAT-0001nl-74 for 18813-done@debbugs.gnu.org; Sun, 26 Oct 2014 20:28:18 -0400 Received: from localhost.localdomain ([127.0.0.1]:51146 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.82) (envelope-from ) id 1XiYAH-003oxI-2s; Sun, 26 Oct 2014 19:28:10 -0500 Date: Mon, 27 Oct 2014 09:28:03 +0900 Message-ID: From: Katsumi Yamaoka To: tsugutomo.enami@jp.sony.com Subject: Re: bug#18813: 25.0.50; gnus start fails unless image.el is loaded in advance. References: Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130012 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.12) Emacs/25.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:Q1FhBIeuLQfZ+KtU3xxlA/+pdVU= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: acl_c_authenticated_local_user: yamaoka X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18813-done Cc: 18813-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Mon, 27 Oct 2014 08:03:15 +0900, tsugutomo.enami@jp.sony.com wrote: > I wonder why it works for other people for a while and found > gnus-group-startup-message forces find-image to be loaded when > necessary. [...] > So, I guess alternative way is changing the above test to (and (fboundp > 'find-image) (display-graphic-p)) like gnus-group-startup-message does. > I'm not sure which one is better. Well, I have another doubt. Did you mean image.elc is not loaded only if the display type is not graphical? Does the error happen in both 24.0.50 (you seem to use) and 25.0.50 (labeled in the bug subject)? Currently I can test it with only 24.3 and 25.0.50, and find-image is fully available in both the versions with the -Q option no matter what the display type is, and even in the batch mode. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 26 22:08:24 2014 Received: (at 18813-done) by debbugs.gnu.org; 27 Oct 2014 02:08:24 +0000 Received: from localhost ([127.0.0.1]:36287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiZjM-0004Gb-07 for submit@debbugs.gnu.org; Sun, 26 Oct 2014 22:08:24 -0400 Received: from ms4.sony.co.jp ([211.125.136.198]:37570) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiZjI-0004GJ-Bj for 18813-done@debbugs.gnu.org; Sun, 26 Oct 2014 22:08:22 -0400 Received: from mta5.noc.sony.co.jp ([IPv6:2001:cf8:0:192::42]) by ms4.sony.co.jp (R8/Sony) with ESMTP id s9R28C64023190 for <18813-done@debbugs.gnu.org>; Mon, 27 Oct 2014 11:08:12 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.04,792,1406559600"; d="scan'208";a="42137770" Received: from sigxcpu.sm.sony.co.jp ([43.4.4.150]) by mrelay5.noc.sony.co.jp with ESMTP; 27 Oct 2014 11:08:12 +0900 Received: by sigxcpu.sm.sony.co.jp (Postfix, from userid 8324) id 2C8A32DF7C; Mon, 27 Oct 2014 10:57:54 +0900 (JST) From: tsugutomo.enami@jp.sony.com To: Katsumi Yamaoka Subject: Re: bug#18813: 25.0.50; gnus start fails unless image.el is loaded in advance. References: Date: Mon, 27 Oct 2014 10:57:54 +0900 In-Reply-To: (Katsumi Yamaoka's message of "Mon, 27 Oct 2014 09:28:03 +0900") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 18813-done Cc: 18813-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Katsumi Yamaoka writes: > Well, I have another doubt. Did you mean image.elc is not loaded > only if the display type is not graphical? Loading image.el won't fail and it works. I wonder if it is really necessary to setup image when display is not capable of displaying it. > Does the error happen in both 24.0.50 (you seem to use) and 25.0.50 > (labeled in the bug subject)? # 24.0.50 is currentl my main mail environment. As I was asked to # prepare patch against emacs trunk in bug#18728, I've prepared 25.0.50 # on temporary machine and found this bug#18813 while testing on it. This bug#18813 doesn't occur on 24.0.50, since image.el is loaded while gnus-art.el is loaded (gnus-image-type-available-p defined in gnus-ems.el calls image-type-available-p). On 25.0.50, tests in gnus-image-type-available-p are reordered and now control returns before calling image-type-available-p when display-images-p returns nil (it is in my case). So, image.el is not loaded. Hmm, why are they reordered? I guess it is to avoid loading unnecessary library. enami. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 26 23:31:19 2014 Received: (at 18813) by debbugs.gnu.org; 27 Oct 2014 03:31:20 +0000 Received: from localhost ([127.0.0.1]:36298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xib1b-0006hc-3F for submit@debbugs.gnu.org; Sun, 26 Oct 2014 23:31:19 -0400 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:58472 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xib1X-0006hP-SA for 18813@debbugs.gnu.org; Sun, 26 Oct 2014 23:31:16 -0400 Received: from localhost.localdomain ([127.0.0.1]:36396 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.82) (envelope-from ) id 1Xib1L-001zxZ-Be; Sun, 26 Oct 2014 22:31:08 -0500 Date: Mon, 27 Oct 2014 12:31:01 +0900 Message-ID: From: Katsumi Yamaoka To: tsugutomo.enami@jp.sony.com Subject: Re: bug#18813: 25.0.50; gnus start fails unless image.el is loaded in advance. References: Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130012 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.12) Emacs/25.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:mJfEw1G3v3T8/1E41p3lEo8ytsk= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: acl_c_authenticated_local_user: yamaoka X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18813 Cc: 18813@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Mon, 27 Oct 2014 10:57:54 +0900, tsugutomo.enami@jp.sony.com wrote: > Katsumi Yamaoka writes: >> Well, I have another doubt. Did you mean image.elc is not loaded >> only if the display type is not graphical? > Loading image.el won't fail and it works. I wonder if it is really > necessary to setup image when display is not capable of displaying it. I see. The image data are definitely unnecessary for a non-graphic display, so I'll add (display-graphic-p) to the tests. > This bug#18813 doesn't occur on 24.0.50, since image.el is loaded while > gnus-art.el is loaded (gnus-image-type-available-p defined in > gnus-ems.el calls image-type-available-p). Thank you for clarifying this. > On 25.0.50, tests in gnus-image-type-available-p are reordered and now > control returns before calling image-type-available-p when > display-images-p returns nil (it is in my case). So, image.el is not > loaded. > Hmm, why are they reordered? I guess it is to avoid loading unnecessary > library. 2013-06-06 Teodor Zlatanov * gnus-ems.el (gnus-image-type-available-p): Test `display-images-p' before `image-type-available-p' to avoid loading the image libraries needlessly. This is just the cause of your problem (it does not mean Ted's change was wrong, of course). In addition, my doubt about loading image.elc was cleared. ,---- loadup.el | (if (fboundp 'x-create-frame) | (progn | (load "fringe") | ;; Needed by `imagemagick-register-types' | (load "emacs-lisp/regexp-opt") | (load "image") | (load "international/fontset") | (load "dnd") | (load "tool-bar"))) `---- This is why find-image is always available in my system. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 26 23:41:22 2014 Received: (at 18813) by debbugs.gnu.org; 27 Oct 2014 03:41:23 +0000 Received: from localhost ([127.0.0.1]:36304 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XibBK-0006wX-Lv for submit@debbugs.gnu.org; Sun, 26 Oct 2014 23:41:22 -0400 Received: from mtaout29.012.net.il ([80.179.55.185]:38681) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XibBH-0006wH-UO for 18813@debbugs.gnu.org; Sun, 26 Oct 2014 23:41:21 -0400 Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NE300H0036VKS00@mtaout29.012.net.il> for 18813@debbugs.gnu.org; Mon, 27 Oct 2014 05:39:56 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NE300FRN3IJJ020@mtaout29.012.net.il>; Mon, 27 Oct 2014 05:39:56 +0200 (IST) Date: Mon, 27 Oct 2014 05:41:02 +0200 From: Eli Zaretskii Subject: Re: bug#18813: 25.0.50; gnus start fails unless image.el is loaded in advance. In-reply-to: X-012-Sender: halo1@inter.net.il To: Katsumi Yamaoka Message-id: <8338aa41td.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 18813 Cc: tsugutomo.enami@jp.sony.com, 18813@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Mon, 27 Oct 2014 09:28:03 +0900 > From: Katsumi Yamaoka > Cc: 18813-done@debbugs.gnu.org > > Currently I can test it with only 24.3 and 25.0.50, and find-image > is fully available in both the versions with the -Q option no > matter what the display type is, and even in the batch mode. The OP built Emacs --without-x, in which case image.el is not preloaded, and the support code is missing. Try configuring --without-x. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 26 23:52:38 2014 Received: (at 18813) by debbugs.gnu.org; 27 Oct 2014 03:52:38 +0000 Received: from localhost ([127.0.0.1]:36313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XibMD-0007DP-Kk for submit@debbugs.gnu.org; Sun, 26 Oct 2014 23:52:37 -0400 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:35506 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XibMA-0007DA-Rj for 18813@debbugs.gnu.org; Sun, 26 Oct 2014 23:52:35 -0400 Received: from localhost.localdomain ([127.0.0.1]:40257 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.82) (envelope-from ) id 1XibM2-002GI7-Oa; Sun, 26 Oct 2014 22:52:27 -0500 Date: Mon, 27 Oct 2014 12:52:25 +0900 Message-ID: From: Katsumi Yamaoka To: tsugutomo.enami@jp.sony.com Subject: Re: bug#18813: 25.0.50; gnus start fails unless image.el is loaded in advance. References: Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130012 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.12) Emacs/25.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:k/po+crd/zGnQ+VjBnIVYxlpYts= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: acl_c_authenticated_local_user: yamaoka X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18813 Cc: 18813@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 26 23:56:48 2014 Received: (at 18813) by debbugs.gnu.org; 27 Oct 2014 03:56:48 +0000 Received: from localhost ([127.0.0.1]:36318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XibQG-0007K3-D3 for submit@debbugs.gnu.org; Sun, 26 Oct 2014 23:56:48 -0400 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:60311 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XibQD-0007Jj-O5 for 18813@debbugs.gnu.org; Sun, 26 Oct 2014 23:56:46 -0400 Received: from localhost.localdomain ([127.0.0.1]:41021 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.82) (envelope-from ) id 1XibQ5-002Iib-R4; Sun, 26 Oct 2014 22:56:38 -0500 Date: Mon, 27 Oct 2014 12:56:36 +0900 Message-ID: From: Katsumi Yamaoka To: Eli Zaretskii Subject: Re: bug#18813: 25.0.50; gnus start fails unless image.el is loaded in advance. References: <8338aa41td.fsf@gnu.org> Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130012 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.12) Emacs/25.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:ucnuIy7gL23V7GW7OmxSwvQNQhc= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: acl_c_authenticated_local_user: yamaoka X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18813 Cc: tsugutomo.enami@jp.sony.com, 18813@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Mon, 27 Oct 2014 05:41:02 +0200, Eli Zaretskii wrote: >> Currently I can test it with only 24.3 and 25.0.50, and find-image >> is fully available in both the versions with the -Q option no >> matter what the display type is, and even in the batch mode. > The OP built Emacs --without-x, in which case image.el is not > preloaded, and the support code is missing. > Try configuring --without-x. Thanks. It's been already cleared. From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 08 12:59:03 2014 Received: (at control) by debbugs.gnu.org; 8 Nov 2014 17:59:03 +0000 Received: from localhost ([127.0.0.1]:53915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnAHv-0001NO-1I for submit@debbugs.gnu.org; Sat, 08 Nov 2014 12:59:03 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:48525) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnAHs-0001Mo-09 for control@debbugs.gnu.org; Sat, 08 Nov 2014 12:59:00 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XnAHo-0007Ft-Ri for control@debbugs.gnu.org; Sat, 08 Nov 2014 12:58:59 -0500 Date: Sat, 08 Nov 2014 12:58:56 -0500 Message-Id: Subject: control message for bug 18980 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) merge 18813 18980 From unknown Sun Jun 22 07:50:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 07 Dec 2014 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator