From: Richard Stallman <rms@gnu.org>
Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org
Subject: Re: Problem mit symlinks, locate-library and load-history [Was: <Something else>]
Date: Mon, 20 Mar 2006 20:02:19 -0500 [thread overview]
Message-ID: <E1FLVGN-00029a-AT@fencepost.gnu.org> (raw)
In-Reply-To: <Pine.LNX.3.96.1060319213206.408A-100000@acm.acm> (message from Alan Mackenzie on Sun, 19 Mar 2006 22:19:02 +0000 (GMT))
, and fails. There are two distinct problems here:
(i) locate-library gives a .elc, but there's a .el in load-history.
I guess eval-after-load needs to convert .elc to .el.
(ii) /home/acm/emacs is actually a symbolic link pointing at /mnt/hda7.
I guess eval-after-load needs to call file-chase-links on one or both
of the names.
(i) The dumped lisp files are byte compiled, so it seems strange indeed
that font-lock.el is record in load-history rather than font-lock.elc.
Is this a bug?
The load history is designed to refer to the source files,
and therefore treats a byte compiled file as if it were the source file.
(ii) Why on earth is eval-after-load converting "font-lock" to a full
filename and then searching for that? Surely it is sufficient that any
old font-lock has been loaded at some time (e.g., at dump time)?
Not necessarily. There can be multiple files called font-lock.el in
different directories. We would not want to have such a coincidence
in Emacs itself, but nothing stops users from having them.
On the other hand, if absolute pathnames are to be used, shouldn't they
first be filtered with file-truename, like this:
Yes.
There are approximately 45 places in ..../lisp where locate-library is
used, and approximately none of them use file-truename. 3 of these are
assoc'king the result with load-history.
Which three are they? Where are they? It sounds like they may all
have a bug. It could be useful to define a subroutine to do
(assoc (file-truename (locate-library file)) load-history)))
except do it correctly.
Would someone like to do that, and ack?
next prev parent reply other threads:[~2006-03-21 1:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-14 11:30 CC Mode: File mode specification error: (void-variable c-font-lock-keywords-3) Alan Mackenzie
2006-03-19 22:19 ` Problem mit symlinks, locate-library and load-history [Was: <Something else>] Alan Mackenzie
2006-03-21 1:02 ` Richard Stallman [this message]
2006-03-21 14:26 ` Problem mit symlinks, locate-library and load-history Alan Mackenzie
2006-03-21 14:56 ` Stefan Monnier
2006-03-22 14:04 ` Problem mit symlinks, locate-library and load-history [Was: <Something else>] Alan Mackenzie
2006-03-27 8:36 ` Richard Stallman
2006-05-10 11:18 ` Problem mit symlinks, locate-library and load-history [PATCH] Alan Mackenzie
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1FLVGN-00029a-AT@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=bug-cc-mode@gnu.org \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).