unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#49009: 27.1.90; files loaded with -l flag does not use file-truename as required by eval-after-load
@ 2021-06-13 21:56 ctarbide--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-06-14 13:38 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: ctarbide--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-06-13 21:56 UTC (permalink / raw)
  To: 49009

[-- Attachment #1: Type: text/plain, Size: 521 bytes --]

Consider:

emacs -nw -Q -batch -L "`pwd`" -l test.el

if the test.el file above is in a non-true path, e.g. a parent dir is a
symlink, and test.el has an eval-after-load for itself, the eval-after-load
form will not be evaluated, the reason is that startup.el does not usefile-truename while loading file, the change below solved the issue:

-  (file-ex (expand-file-name file)))
+  (file-ex (file-truename (expand-file-name file))))

http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/startup.el#n2503


[-- Attachment #2: Type: text/html, Size: 1063 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-19 13:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-13 21:56 bug#49009: 27.1.90; files loaded with -l flag does not use file-truename as required by eval-after-load ctarbide--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-06-14 13:38 ` Lars Ingebrigtsen
2021-06-19 13:59   ` Lars Ingebrigtsen

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).