all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: MON KEY <monkey@sandpframing.com>
Cc: emacs-devel@gnu.org
Subject: Re: locate-library, the NOSUFFIX arg and a [PATCH]
Date: Sat, 23 Jan 2010 06:23:05 -0500	[thread overview]
Message-ID: <jwv8wbpjchw.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <d2afcfda1001221810n36f4b862xd1b7d19b67168b7d@mail.gmail.com> (MON KEY's message of "Fri, 22 Jan 2010 21:10:13 -0500")

> I make the same request:
> (locate-library "subr" t '("/home/mon/fnd-sbr"))

> locate-library returns
> => "/home/mon/fnd-sbr/subr.gz"

Thanks!  Yes, this is a good example of a problematic case.  I wish you
had started with it.  Indeed, the docstring would need adjustment for
it.  Not sure how best to do it.  Basically the compression extensions
like ".gz" are treated as "non-suffixes".  Or maybe the code should be
changed to not add the compression suffixes in this case.  I can't
remember enough of why the code is doing it now: maybe it's simple
accidental consequence of the implementation, or maybe there's an actual
use case for which it matters.

>> Again, no, because this argument describes which extensions might be
>> added to the provided string in order to find a file name.  None of the
>> file name's suffixes are ever removed by locate-library.

> Except ".el.gz" right?

Again, please give me a relevant example.


        Stefan




  reply	other threads:[~2010-01-23 11:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-19 22:28 locate-library, the NOSUFFIX arg and a [PATCH] MON KEY
2010-01-21 14:08 ` Stefan Monnier
2010-01-21 23:58   ` MON KEY
2010-01-22 15:18     ` Stefan Monnier
2010-01-23  2:10       ` MON KEY
2010-01-23 11:23         ` Stefan Monnier [this message]
2010-01-24  1:39           ` MON KEY
2010-01-25  3:23             ` Stefan Monnier
2010-01-27  4:25               ` MON KEY
2010-01-27 14:55                 ` Stefan Monnier
2010-01-28  1:09                   ` MON KEY
2010-01-28  2:46                     ` Stefan Monnier
2010-01-29  2:55                       ` MON KEY

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv8wbpjchw.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=monkey@sandpframing.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.