GNU bug report logs - #49009
27.1.90; files loaded with -l flag does not use file-truename as required by eval-after-load

Previous Next

Package: emacs;

Reported by: ctarbide <at> tuta.io

Date: Sun, 13 Jun 2021 22:29:02 UTC

Severity: normal

Tags: patch

Found in version 27.1.90

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: ctarbide <at> tuta.io
To: bug-gnu-emacs <at> gnu.org
Subject: 27.1.90; files loaded with -l flag does not use file-truename as
 required by eval-after-load
Date: Sun, 13 Jun 2021 23:56:35 +0200 (CEST)
[Message part 1 (text/plain, inline)]
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

[Message part 2 (text/html, inline)]

This bug report was last modified 3 years and 333 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.