diff options
author | Bastien <bzg@gnu.org> | 2020-02-14 08:36:54 +0100 |
---|---|---|
committer | Bastien <bzg@gnu.org> | 2020-02-14 08:36:54 +0100 |
commit | 29f44df758d182873c9241f3cb202968b410f0bd (patch) | |
tree | 7718491a138664dca0dda5f399ddaab47d5f9933 | |
parent | 66810d2121aa1d936238fc53cc155e6eda425313 (diff) | |
download | org-mode-29f44df758d182873c9241f3cb202968b410f0bd.tar.gz |
Fix fa24cd541 again
-rw-r--r-- | lisp/org.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/org.el b/lisp/org.el index 09b1d54..403c7bd 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -216,12 +216,12 @@ 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* ((file (file-truename file)) - (tangled-file (concat (file-name-sans-extension file) ".el"))) + (let ((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 - (file-attribute-modification-time (file-attributes file))) + (file-attribute-modification-time + (file-attributes (file-truename file)))) (org-babel-tangle-file file tangled-file "emacs-lisp")) (if compile (progn |