From fa24cd541d51f386fe89c8bb47b41273b19abf9a Mon Sep 17 00:00:00 2001 From: Bastien Date: Wed, 12 Feb 2020 17:43:02 +0100 Subject: [PATCH] org.el (org-babel-load-file): Don't get fooled by symlinks * lisp/org.el (org-babel-load-file): Don't get fooled by symlinks. --- lisp/org.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 60dd869cf..dc75b2e5b 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -216,7 +216,8 @@ and then loads the resulting file using `load-file'. With optional prefix argument COMPILE, the tangled Emacs Lisp file is byte-compiled before it is loaded." (interactive "fFile to load: \nP") - (let* ((tangled-file (concat (file-name-sans-extension file) ".el"))) + (let* ((file (file-truename file)) + (tangled-file (concat (file-name-sans-extension file) ".el"))) ;; Tangle only if the Org file is newer than the Elisp file. (unless (org-file-newer-than-p tangled-file