From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62119 Path: news.gmane.org!not-for-mail From: Bill Wohler Newsgroups: gmane.mail.mh-e.devel,gmane.emacs.gnus.general Subject: Re: image-load-path/load-path function Date: Wed, 01 Mar 2006 17:07:25 -0800 Organization: Newt Software Message-ID: <19737.1141261645@olgas.newt.com> References: <17903.1141256030@olgas.newt.com> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1141261800 9901 80.91.229.2 (2 Mar 2006 01:10:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Mar 2006 01:10:00 +0000 (UTC) Original-X-From: mh-e-devel-admin@lists.sourceforge.net Thu Mar 02 02:09:57 2006 Return-path: Envelope-to: gmmd-mh-e-devel@m.gmane.org Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FEcKE-0008DU-SP for gmmd-mh-e-devel@m.gmane.org; Thu, 02 Mar 2006 02:09:51 +0100 Original-Received: from sc8-sf-list1-b.sourceforge.net (sc8-sf-list1-b.sourceforge.net [10.3.1.7]) by sc8-sf-spam1.sourceforge.net (Postfix) with ESMTP id B217D89581; Wed, 1 Mar 2006 17:08:14 -0800 (PST) Original-Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1FEcI1-0001zi-IC for mh-e-devel@lists.sourceforge.net; Wed, 01 Mar 2006 17:07:33 -0800 Original-Received: from tassie.newt.com ([70.85.162.231]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1FEcHz-00030X-13 for mh-e-devel@lists.sourceforge.net; Wed, 01 Mar 2006 17:07:33 -0800 Original-Received: from olgas.newt.com (m090e36d0.tmodns.net [208.54.14.9]) by tassie.newt.com (Postfix) with ESMTP id A766A1D0ABB; Wed, 1 Mar 2006 17:04:27 -0800 (PST) Original-Received: by olgas.newt.com (Postfix, from userid 1000) id DEE411717A; Wed, 1 Mar 2006 17:07:25 -0800 (PST) Original-Received: from olgas.newt.com (localhost [127.0.0.1]) by olgas.newt.com (Postfix) with ESMTP id DCB1C16FA9; Wed, 1 Mar 2006 17:07:25 -0800 (PST) Original-To: mh-e-devel@lists.sourceforge.net, ding@gnus.org In-reply-to: <17903.1141256030@olgas.newt.com> Comments: In-reply-to Bill Wohler message dated "Wed, 01 Mar 2006 15:33:50 -0800." X-Mailer: MH-E 7.92+cvs; nmh 1.1; GNU Emacs 22.0.50.7 X-Image-URL: http://www.newt.com/wohler/images/bill-diving.png Mail-Followup-To: mh-e-devel@lists.sourceforge.net, ding@gnus.org X-Spam-Score: 1.0 (+) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 1.0 FORGED_RCVD_HELO Received: contains a forged HELO Original-Sender: mh-e-devel-admin@lists.sourceforge.net Errors-To: mh-e-devel-admin@lists.sourceforge.net X-BeenThere: mh-e-devel@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Unsubscribe: , List-Id: Forum for the MH-E developers List-Post: List-Help: List-Subscribe: , List-Archive: X-Original-Date: Wed, 01 Mar 2006 17:07:25 -0800 Xref: news.gmane.org gmane.mail.mh-e.devel:11812 gmane.emacs.gnus.general:62119 Archived-At: Bill Wohler wrote: > Reiner Steib wrote: > > > > (defvar gmm-image-load-path nil > > "Directory where images are found. > > See the function `gmm-image-load-path'.") > > I've already renamed this to mh-image-directory per your suggestion. While converting our code to use your version, it occurred to me that it would be more general to use an *-image-load-path variable since the user might have their own images in more than one place. And then if we were to move this function and the variable to image.el, we'd rename the variable to image-load-path. Which already exists. Which made me think that perhaps this variable is redundant. Since it was Peter and Debian which suggested the use of this variable in the first place, and now that the function checks both load-path and image-load-path for the library's images, I'd like to ask Peter if it would be OK to change the line in emacsen-startup: (setq mh-image-directory "/usr/share/emacs/site-lisp/etc/images/mh-e") to (if (boundp 'image-load-path) (add-to-list 'image-load-path "/usr/share/emacs/site-lisp/etc/images/mh-e") (add-to-list 'load-path "/usr/share/emacs/site-lisp/etc/images/mh-e")) Is this called late enough so that /usr/share/emacs/site-lisp/etc/images/mh-e would be placed in front of the standard images directory? If this seems OK to everyone, I'll make *-image-directory a local variable within *-image-load-path. -- Bill Wohler http://www.newt.com/wohler/ GnuPG ID:610BD9AD Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian! If you're passed on the right, you're in the wrong lane. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642