From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66230 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: Problem running gnus when image is not already loaded Date: Sat, 02 Feb 2008 19:12:43 +0100 Message-ID: References: <20080202.121924.157909693.hanche@math.ntnu.no> <20080202.185810.69637060.hanche@math.ntnu.no> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201976050 31699 80.91.229.12 (2 Feb 2008 18:14:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Feb 2008 18:14:10 +0000 (UTC) Cc: To: Harald Hanche-Olsen Original-X-From: ding-owner+M14721@lists.math.uh.edu Sat Feb 02 19:14:31 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1JLMso-0008SK-6q for ding-account@gmane.org; Sat, 02 Feb 2008 19:14:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1JLMsA-0000o1-3f; Sat, 02 Feb 2008 12:13:50 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JLMs8-0000ne-P4 for ding@lists.math.uh.edu; Sat, 02 Feb 2008 12:13:48 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JLMs1-0005zG-RP for ding@lists.math.uh.edu; Sat, 02 Feb 2008 12:13:48 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JLMs4-00060v-00 for ; Sat, 02 Feb 2008 19:13:44 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id m12IDeAi026114; Sat, 2 Feb 2008 19:13:40 +0100 (MET) Original-Received: from localhost (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id D9D6612EDE; Sat, 2 Feb 2008 19:13:39 +0100 (CET) X-Face: :6KQZ[nyoS_edmB.%gw-=)BYth^|2+Y+^cu%I$FSx!&>-'om>3H7A|M&n(V7fIo3P.;yo.b yq4$p;ZaBtkv)\}biaiBQe"mD}iib1AA@99-fZ7i*bLhNRVC&0Wkxg9)SH?oWc@{ Mail-Followup-To: Harald Hanche-Olsen , User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-DCC-INFN-TO-Metrics: poseidon 1233; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: by amavisd-new X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66230 Archived-At: On Sat, Feb 02 2008, Harald Hanche-Olsen wrote: > I noticed just now that you put the code to force the loading of > whatever library find-image comes from before the test > (display-graphic-p). I think it should go after, since it makes > little sense to force the loading of this library if the user is > running emacs in a terminal. Correct. Thanks again. I will install the following, unless someone points out a problem or offers a better way. --8<---------------cut here---------------start------------->8--- --- gnus.el.~7.77.~ 2008-01-20 10:27:58.000000000 +0100 +++ gnus.el 2008-02-02 19:09:41.000000000 +0100 @@ -1003,6 +1003,12 @@ ((and (fboundp 'find-image) (display-graphic-p) + (or + ;; Make sure the library defining `image-load-path' is loaded now + ;; (`find-image' is autoloaded). Else, we may get "defvar ignored + ;; because image-load-path is let-bound". + (find-image '(nil (:type xpm :file "gnus.xpm"))) + t) (let* ((data-directory (nnheader-find-etc-directory "images/gnus")) (image-load-path (cond (data-directory (list data-directory)) --8<---------------cut here---------------end--------------->8--- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/