From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#18813: 25.0.50; gnus start fails unless image.el is loaded in advance. Date: Mon, 27 Oct 2014 12:31:01 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1414380743 17821 80.91.229.3 (27 Oct 2014 03:32:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2014 03:32:23 +0000 (UTC) Cc: 18813@debbugs.gnu.org To: tsugutomo.enami@jp.sony.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 27 04:32:16 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xib2V-00004y-Lc for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Oct 2014 04:32:15 +0100 Original-Received: from localhost ([::1]:59073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xib2V-0001NX-8n for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Oct 2014 23:32:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xib2O-0001Mh-4o for bug-gnu-emacs@gnu.org; Sun, 26 Oct 2014 23:32:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xib2J-00040L-Rs for bug-gnu-emacs@gnu.org; Sun, 26 Oct 2014 23:32:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xib2J-000407-Om for bug-gnu-emacs@gnu.org; Sun, 26 Oct 2014 23:32:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xib2I-0006ip-0Y; Sun, 26 Oct 2014 23:32:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Mon, 27 Oct 2014 03:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18813 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 18813-submit@debbugs.gnu.org id=B18813.141438068025773 (code B ref 18813); Mon, 27 Oct 2014 03:32:01 +0000 Original-Received: (at 18813) by debbugs.gnu.org; 27 Oct 2014 03:31:20 +0000 Original-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 Original-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 Original-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 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 (=?UTF-8?Q?=E7=9C=9F?= Gnus v0.12) Emacs/25.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:mJfEw1G3v3T8/1E41p3lEo8ytsk= 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95138 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.