diff options
author | Andrea Corallo <akrl@sdf.org> | 2020-04-15 22:55:30 +0100 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2020-04-15 22:55:30 +0100 |
commit | c5ed3a72a8a70931ef9b0f9d69f73ff0fd40cadb (patch) | |
tree | 5d990c52595cb653ba40d9bbf6aa7363edf5e424 /lisp/subr.el | |
parent | 208a11d3f0ede17b29da45c2491b703b6942a764 (diff) | |
download | emacs-c5ed3a72a8a70931ef9b0f9d69f73ff0fd40cadb.tar.gz |
* lisp/subr.el (eval-after-load): Make use of load-true-file-name bug#40638
Diffstat (limited to 'lisp/subr.el')
-rw-r--r-- | lisp/subr.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index f7445d8c25e..c8eb12760c4 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -4600,10 +4600,10 @@ This function makes or adds to an entry on `after-load-alist'." ;; So add an indirection to make sure that `func' is really run ;; "after-load" in case the provide call happens early. (lambda () - (if (not load-file-name) + (if (not load-true-file-name) ;; Not being provided from a file, run func right now. (funcall func) - (let ((lfn load-file-name) + (let ((lfn load-true-file-name) ;; Don't use letrec, because equal (in ;; add/remove-hook) would get trapped in a cycle. (fun (make-symbol "eval-after-load-helper"))) |