emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: Ricky Saurav <ricky.saurav1996@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: Symlink handling in org-babel-load-file
Date: Wed, 12 Feb 2020 13:10:42 +0100	[thread overview]
Message-ID: <87h7zw0zwd.fsf@gnu.org> (raw)
In-Reply-To: <CAERO9zPga0oWKah9WkOp=yRxDW4PYm7Q+83Pu=VAqNzKAm4T+w@mail.gmail.com> (Ricky Saurav's message of "Fri, 31 Jan 2020 02:52:24 +0530")

[-- Attachment #1: Type: text/plain, Size: 97 bytes --]

Hi Ricky,

thanks for reporting this.

Can you try this patch and confirm it solves your issue?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org.el.patch --]
[-- Type: text/x-diff, Size: 628 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 14 bytes --]


-- 
 Bastien

  reply	other threads:[~2020-02-12 12:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-30 21:22 Bug: Symlink handling in org-babel-load-file Ricky Saurav
2020-02-12 12:10 ` Bastien [this message]
2020-02-13 18:16   ` ricky saurav
2020-02-14 10:02     ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h7zw0zwd.fsf@gnu.org \
    --to=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=ricky.saurav1996@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).