From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62171 Path: news.gmane.org!not-for-mail From: Bill Wohler Newsgroups: gmane.emacs.gnus.general,gmane.spam.detected Subject: Re: image-load-path/load-path function Date: Mon, 06 Mar 2006 08:11:45 -0800 Organization: Newt Software Message-ID: <1563.1141661505@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> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1141669393 5093 80.91.229.6 (6 Mar 2006 18:23:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2006 18:23:13 +0000 (UTC) Original-X-From: ding-owner+m10699@lists.math.uh.edu Mon Mar 06 19:23:04 2006 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1FGKMJ-00011r-00 for ; Mon, 06 Mar 2006 19:23:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FGKMB-0001ij-00; Mon, 06 Mar 2006 12:22:55 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FGKLn-0001ie-00 for ding@lists.math.uh.edu; Mon, 06 Mar 2006 12:22:31 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FGKLk-0005w2-H9 for ding@lists.math.uh.edu; Mon, 06 Mar 2006 12:22:31 -0600 Original-Received: from pop-savannah.atl.sa.earthlink.net ([207.69.195.69]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FGKLj-0004Tr-00 for ; Mon, 06 Mar 2006 19:22:27 +0100 Original-Received: from h-68-165-5-58.snvacaid.dynamic.covad.net ([68.165.5.58] helo=olgas.newt.com) by pop-savannah.atl.sa.earthlink.net with esmtp (Exim 3.36 #10) id 1FGIJJ-0005Lr-00; Mon, 06 Mar 2006 11:11:49 -0500 Original-Received: by olgas.newt.com (Postfix, from userid 1000) id C416E170A8; Mon, 6 Mar 2006 08:11:45 -0800 (PST) Original-Received: from olgas.newt.com (localhost [127.0.0.1]) by olgas.newt.com (Postfix) with ESMTP id C093616FA8; Mon, 6 Mar 2006 08:11:45 -0800 (PST) Original-To: mh-e-devel@lists.sourceforge.net, ding@gnus.org In-reply-to: <5868.1141494916@olgas.newt.com> Comments: In-reply-to Bill Wohler message dated "Sat, 04 Mar 2006 09:55:16 -0800." X-Mailer: MH-E 7.92+cvs; nmh 1.1; GNU Emacs 22.0.50.9 X-Image-URL: http://www.newt.com/wohler/images/bill-diving.png Mail-Followup-To: mh-e-devel@lists.sourceforge.net, ding@gnus.org Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu X-Spam-Report: 5.7 points; * 0.0 FORGED_RCVD_HELO Received: contains a forged HELO * 0.3 J_CHICKENPOX_52 BODY: {5}Letter - dot - {2}Letter * 5.4 BAYES_99 BODY: Bayesian spam probability is 99 to 100% * [score: 1.0000] Xref: news.gmane.org gmane.emacs.gnus.general:62171 gmane.spam.detected:1402454 Archived-At: 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). -- 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.