summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien <bzg@gnu.org>2020-02-14 08:38:03 +0100
committerBastien <bzg@gnu.org>2020-02-14 08:38:03 +0100
commitfb3ec41daceb139a4444b190d0e9ba981a6f2118 (patch)
tree0d3632b86c266b2835e6fa1155b5af9afc3a12e5
parentbfe404c9339d465e0374194a38fa45010e6bdf67 (diff)
parent29f44df758d182873c9241f3cb202968b410f0bd (diff)
downloadorg-mode-fb3ec41daceb139a4444b190d0e9ba981a6f2118.tar.gz
Merge branch 'maint'
-rw-r--r--lisp/org.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 1a995cc..97ce7ec 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -218,12 +218,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\\|elisp"))
(if compile
(progn