From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Bug: Symlink handling in org-babel-load-file Date: Wed, 12 Feb 2020 13:10:42 +0100 Message-ID: <87h7zw0zwd.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53449) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1qqs-00040r-F5 for emacs-orgmode@gnu.org; Wed, 12 Feb 2020 07:10:47 -0500 In-Reply-To: (Ricky Saurav's message of "Fri, 31 Jan 2020 02:52:24 +0530") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Ricky Saurav Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hi Ricky, thanks for reporting this. Can you try this patch and confirm it solves your issue? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=org.el.patch 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 --=-=-= Content-Type: text/plain -- Bastien --=-=-=--