* "load-file" surreptitiously pushes directories onto load-path.
@ 2007-04-09 7:53 Alan Mackenzie
[not found] ` <17946.90.547705.72200@farnswood.snap.net.nz>
0 siblings, 1 reply; 2+ messages in thread
From: Alan Mackenzie @ 2007-04-09 7:53 UTC (permalink / raw)
To: emacs-devel
Hi, Emacs!
Start a modern Emacs with
# emacs -Q
In *scratch*, do
C-u M-: load-path
Follow this up with
M-x load-file ~/cc-mode-5.31.n/tests/000tests.elc
and repeat
C-u M-: load-path
It will be seen that load-file has pushed the element
"/home/acm/cc-mode-5.31.n" onto the front of load-path. This is surely
a bug. And even if it's not, it ought to be!
I think it's a serious bug. It can lead hackers to testing code which
is in a different directory from what they think. It has done exactly
that to me for an extended period.
I've had a quick look through the Elisp manual, without finding this
behaviour described.
As a matter of interest, this bug is in Emacs 21. It is very old.
I might try and track it down tomorrow.
--
Alan Mackenzie (Ittersbach, Germany).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-09 10:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-09 7:53 "load-file" surreptitiously pushes directories onto load-path Alan Mackenzie
[not found] ` <17946.90.547705.72200@farnswood.snap.net.nz>
2007-04-09 10:16 ` Alan Mackenzie
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.