From: Dave Goel <deego3@gmail.com>
To: emacs-devel@gnu.org
Subject: find-file.el bug; checked in a fix.
Date: Wed, 05 Dec 2007 17:10:27 -0500 [thread overview]
Message-ID: <874pewdc8c.fsf@marie.gnufans.net> (raw)
hi
Bug in the current cvs:
If a function f is autoloaded from a file a.el in a directory d, and
if there also exists an executable file called a in a directory d1,
then calling find-function on f shows the file a instead of
a.el. (And, it then fails to find the function f in the incorrectly
loaded file.)
The problem seems to appear when d1 precedes d in your extended load-path.
----
I have checked in a fix --
The problem is that symbol-function definition for loaded functions
does not store the .el suffix. locate-library then searches for all
suffixes ("el" "el.gz" "" ) in the load-path. Given this order, it
does the right thing - prefer "el" over "" in a *given* directory.
However, this will fail if the "" suffix occurs in a different
directory which gets examined earlier.
I believe that an appropriate solution is to simply make
`find-library-name' search for the (".el" ".el.gz") files first in the
load-path. Only if it does not succeed look for the other suffixes.
The rationale is that it is much more likely that emacs would have
learned of that function from a ".el" (or a derivative thereof, like a
.elc) rather than a "" file.
I have committed this fix.
----
This seems like a pretty non-destructive and local change. `find-library-name',
not to be confused by locate-library, is only used in find-file.el.
-----
(I am posting here after years. You all know me as D. Goel or Deepak
Goel or deego from my older email address which I no longer use
actively. I don't want to frob my From: header every time I post here;
so I am going to remark about the change here, and leave my From:
intact; I should learn about gnus posting styles...)
- Deepak Goel
next reply other threads:[~2007-12-05 22:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-05 22:10 Dave Goel [this message]
2007-12-07 17:18 ` find-file.el bug; checked in a fix Richard Stallman
2007-12-07 18:50 ` Dave Goel
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=874pewdc8c.fsf@marie.gnufans.net \
--to=deego3@gmail.com \
--cc=emacs-devel@gnu.org \
/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.