mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 18:40:39 -08:00
Always set load-true-file-name' where load-file-name' is set too.
Fix bug#40620. * lisp/cus-dep.el (custom-make-dependencies): Set load-true-file-name. * lisp/emacs-lisp/package.el (package-quickstart-refresh): Likewise. * lisp/international/mule.el (load-with-code-conversion): Likewise. * lisp/loadup.el (load-true-file-name): Likewise.
This commit is contained in:
parent
8decfbe4d7
commit
8db8c851ad
5 changed files with 10 additions and 4 deletions
|
|
@ -3965,7 +3965,8 @@ activations need to be changed, such as when `package-load-list' is modified."
|
|||
(let ((load-suffixes '(".el" ".elc")))
|
||||
(locate-library (package--autoloads-file-name pkg))))
|
||||
(pfile (prin1-to-string file)))
|
||||
(insert "(let ((load-file-name " pfile "))\n")
|
||||
(insert "(let ((load-true-file-name " pfile ")\
|
||||
(load-file-name " pfile "))\n")
|
||||
(insert-file-contents file)
|
||||
;; Fixup the special #$ reader form and throw away comments.
|
||||
(while (re-search-forward "#\\$\\|^;\\(.*\n\\)" nil 'move)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue