[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#52292: [PATCH] #52292
From: |
Eli Zaretskii |
Subject: |
bug#52292: [PATCH] #52292 |
Date: |
Wed, 11 May 2022 14:17:42 +0300 |
> Cc: Lars Ingebrigtsen <larsi@gnus.org>, alexandre.liao@gmail.com
> From: No Wayman <iarchivedmywholelife@gmail.com>
> Date: Wed, 11 May 2022 00:23:42 -0400
>
> diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
> index 1e4b2c14a0..23e34ddad0 100644
> --- a/lisp/emacs-lisp/autoload.el
> +++ b/lisp/emacs-lisp/autoload.el
> @@ -282,6 +282,7 @@ autoload-find-generated-file
> (let ((enable-local-variables :safe)
> (enable-local-eval nil)
> (find-file-hook nil)
> + (find-file-visit-truename nil)
> (delay-mode-hooks t))
> ;; We used to use `raw-text' to read this file, but this causes
> ;; problems when the file contains non-ASCII characters.
I think I'd prefer to run the file name through expand-file-name
instead, as not resolving symlinks and other similar "equivalences"
could have adverse effect elsewhere, if someone compares the file name
to some other file name.