emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find-library-name fails if file (with no extension) exists.


From: Juanma Barranquero
Subject: Re: find-library-name fails if file (with no extension) exists.
Date: Tue, 21 Nov 2006 20:09:59 +0100

On 11/21/06, Romain Francoise <address@hidden> wrote:

This change is necessary to find the "foo.el.gz" file if `symbol-file'
returns that the definition is in "foo.el" -- since we compress source
files after installing them (on systems where gzip is present), trying
to find a file named foo.el will fail.

I know that, but:

For example, if
you start Emacs with `emacs -Q', then do `C-h f erc RET', it says

  erc is an interactive autoloaded Lisp function in `erc'.
                                                    ^^^^^
Then if you M-: (require 'erc) RET and try again, it says

  erc is an interactive compiled Lisp function in `erc.el'.

That seems sensible. find-library-name's goal is to find an elisp
library. Those are not usually found in files without a prefix.

In other words: when looking for "erc", trying "erc.el" and
"erc.el.gz" seem sensible. When looking for "erc.el", trying "erc.el"
and "erc.el.gz" is still sensible; but to try "erc" is absurd. No,
scratch that: it is a bug :)

If it's any consolation, the bug you're describing doesn't happen on a
real system, where the filesystem is case-sensitive.  ;-)

Ha, ha. Case-sensitive filesystems make the same sense that
case-sensitive languages: none at all. (Note that Common Lisp is
case-insensitive.)

                   /L/e/k/t/u




reply via email to

[Prev in Thread] Current Thread [Next in Thread]