[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug: Symlink handling in org-babel-load-file
From: |
Bastien |
Subject: |
Re: Bug: Symlink handling in org-babel-load-file |
Date: |
Wed, 12 Feb 2020 13:10:42 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Hi Ricky,
thanks for reporting this.
Can you try this patch and confirm it solves your issue?
diff --git a/lisp/org.el b/lisp/org.el
index f3823284c..ef2c7b9e6 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -218,7 +218,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
--
Bastien
- Re: Bug: Symlink handling in org-babel-load-file,
Bastien <=