From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62205 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: Fri, 10 Mar 2006 18:16:00 -0800 Organization: Newt Software Message-ID: <14028.1142043360@olgas.newt.com> References: <17903.1141256030@olgas.newt.com> <19737.1141261645@olgas.newt.com> <4021.1141273863@mixed> <12647.1141331413@olgas.newt.com> <18269.1141346992@olgas.newt.com> <9984.1141426021@olgas.newt.com> <5868.1141494916@olgas.newt.com> <1563.1141661505@olgas.newt.com> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1142047871 8730 80.91.229.2 (11 Mar 2006 03:31:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 11 Mar 2006 03:31:11 +0000 (UTC) Original-X-From: mh-e-devel-admin@lists.sourceforge.net Sat Mar 11 04:31:08 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 1FHuoo-0000Ji-FA for gmmd-mh-e-devel@m.gmane.org; Sat, 11 Mar 2006 04:31:02 +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 ACEDD883D9; Fri, 10 Mar 2006 19:31:01 -0800 (PST) Original-Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1FHuoA-0002zc-Dj for mh-e-devel@lists.sourceforge.net; Fri, 10 Mar 2006 19:30:22 -0800 Original-Received: from pop-borzoi.atl.sa.earthlink.net ([207.69.195.70]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1FHuoA-0005Pn-3J for mh-e-devel@lists.sourceforge.net; Fri, 10 Mar 2006 19:30:22 -0800 Original-Received: from h-68-165-5-58.snvacaid.dynamic.covad.net ([68.165.5.58] helo=olgas.newt.com) by pop-borzoi.atl.sa.earthlink.net with esmtp (Exim 3.36 #10) id 1FHuo6-0002e5-00; Fri, 10 Mar 2006 22:30:18 -0500 Original-Received: by olgas.newt.com (Postfix, from userid 1000) id 6737817080; Fri, 10 Mar 2006 18:16:00 -0800 (PST) Original-Received: from olgas.newt.com (localhost [127.0.0.1]) by olgas.newt.com (Postfix) with ESMTP id 60AAF16FA8; Fri, 10 Mar 2006 18:16:00 -0800 (PST) Original-To: mh-e-devel@lists.sourceforge.net, ding@gnus.org In-reply-to: <1563.1141661505@olgas.newt.com> Comments: In-reply-to Bill Wohler message dated "Mon, 06 Mar 2006 08:11:45 -0800." X-Mailer: MH-E 7.93+cvs; nmh 1.1; GNU Emacs 22.0.50.14 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: Fri, 10 Mar 2006 18:16:00 -0800 Xref: news.gmane.org gmane.mail.mh-e.devel:11932 gmane.emacs.gnus.general:62205 Archived-At: Bill Wohler wrote: > Bill Wohler wrote: > > > Reiner Steib wrote: > > > > > On Fri, Mar 03 2006, Bill Wohler wrote: > > > > > > But maybe we can suggest an example which avoids calling > > > `image-load-path-for-library' twice: > > > > > > (let* ((load-path (image-load-path-for-library "mh-e" "mh-logo.xpm")) > > > (image-load-path (cons (car load-path) image-load-path))) > > > ;; do something. Test: > > > image-load-path) > > > > That assumes we guarantee that the image-directory is always first. That > > appears to be the case now. I think I'd be a little leery about > > committing to this in case we find out later that we needed to preserve > > the existing order in the path if the image directory was already in the > > path. But if we want to commit to this, then I'll add it to the > > documentation and use this example, otherwise... > > After a little more thought, the idea of committing to this API isn't as > bad as I had initially thought. Functions like add-to-list do it. After > all, this function is supposed to set things up so the preferred images > are used, and that's done by putting the image directory first in the > path. > > Unless I hear an objection this morning, I'll go ahead and make that > change (document that the image directory comes first and update the > example per Rainer's note). I'll also check it into image.el and send > out a note to emacs-devel about it (unless someone thinks I should send > a note to emacs-devel beforehand). Rats, I forgot about this. Still, I would have liked to have gotten more feedback before proceeding--shall we leave the function alone now, or shall we make this change? -- 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