emacs-pretest-bug
[Top][All Lists]
Advanced

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

file-requires or load-history seems wrong


From: Drew Adams
Subject: file-requires or load-history seems wrong
Date: Thu, 30 Dec 2004 14:53:56 -0800

If I use `load-library' or `require' to load a library, the entry in
`load-history' uses the library name - that is, the file name sans extension
and sans directory.

If I use `load-file' to load a library, the entry in `load-history' uses the
absolute file name.

As a result, function `file-requires' of library `loadhist.el' does not seem
to do the right thing for libraries that were loaded with `load-file': their
`require's are not taken into account (are not included in the output).

This seems like a bug to me. If it is by design, then I think the doc
strings of `load-history' and `file-requires' should point out this
behavior. This has consequences for tools that try to track library
dependencies. The current behavior makes it much harder for such
tools, IMO.

BTW, this seemingly buggy behavior is not new - it is the same in Emacs 20.

In GNU Emacs 21.3.50.1 (i386-mingw-nt5.1.2600)
 of 2004-07-26 on BERATUNG4
configured using `configure --with-gcc
(3.3) --cflags -I../../jpeg-6b-1/include -I../../libpng-1.2.4-1/include -I..
/../tiff-3.5.7/include -I../../xpm-nox-4.2.0/include -I../../zlib-1.1.4-1/in
clude'





reply via email to

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