From 131441dbd2d16e92f863864ed536f37fcd4a85fc Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Thu, 4 Feb 2010 09:43:11 -0700 Subject: [PATCH] =?UTF-8?q?babel:=20load-file=20works=20for=20symlinks=20-?= =?UTF-8?q?-=20Thanks=20to=20Martin=20K=C3=BChl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contrib/babel/lisp/org-babel-tangle.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/babel/lisp/org-babel-tangle.el b/contrib/babel/lisp/org-babel-tangle.el index 66e2c2658..4edab9c70 100644 --- a/contrib/babel/lisp/org-babel-tangle.el +++ b/contrib/babel/lisp/org-babel-tangle.el @@ -48,7 +48,8 @@ file using `load-file'." (flet ((age (file) (time-to-seconds (time-subtract (current-time) - (sixth (file-attributes file)))))) + (sixth (file-attributes + (file-truename file))))))) (let* ((base-name (file-name-sans-extension file)) (exported-file (concat base-name ".el"))) ;; tangle if the org-mode file is newer than the elisp file