From: ctarbide--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 49009@debbugs.gnu.org
Subject: bug#49009: 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) [thread overview]
Message-ID: <Mc6N4pp--3-2@tuta.io> (raw)
[-- 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 --]
next reply other threads:[~2021-06-13 21:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-13 21:56 ctarbide--- via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-06-14 13:38 ` bug#49009: 27.1.90; files loaded with -l flag does not use file-truename as required by eval-after-load Lars Ingebrigtsen
2021-06-19 13:59 ` Lars Ingebrigtsen
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=Mc6N4pp--3-2@tuta.io \
--to=bug-gnu-emacs@gnu.org \
--cc=49009@debbugs.gnu.org \
--cc=ctarbide@tuta.io \
/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).