emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals-release/org a4ff518a2e: org-refile-get-location: Fix ou


From: ELPA Syncer
Subject: [elpa] externals-release/org a4ff518a2e: org-refile-get-location: Fix outline path to a symlink of current buffer
Date: Thu, 20 Jun 2024 12:58:56 -0400 (EDT)

branch: externals-release/org
commit a4ff518a2eef3553295e110168a7b0eab942bfbf
Author: Al Haji-Ali <a.hajiali@hw.ac.uk>
Commit: Ihor Radchenko <yantar92@posteo.net>

    org-refile-get-location: Fix outline path to a symlink of current buffer
    
    * lisp/org-refile.el (org-refile-get-location): When current buffer
    file is a symlink to refile location, do not append the file name to
    the outline path, just as we do when current buffer is the same as
    refile location file.
    
    TINYCHANGE
---
 lisp/org-refile.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/org-refile.el b/lisp/org-refile.el
index 20b5fbd02c..c8e64903c3 100644
--- a/lisp/org-refile.el
+++ b/lisp/org-refile.el
@@ -666,12 +666,12 @@ this function appends the default value from
                  #'completing-read))
         (extra (if org-refile-use-outline-path "/" ""))
         (cbnex (concat (buffer-name) extra))
-        (filename (and cfn (expand-file-name cfn)))
+        (filename (and cfn (file-truename cfn)))
         (tbl (mapcar
               (lambda (x)
                 (if (and (not (member org-refile-use-outline-path
                                       '(file full-file-path title)))
-                         (not (equal filename (nth 1 x))))
+                         (not (equal filename (file-truename (nth 1 x)))))
                     (cons (concat (car x) extra " ("
                                   (file-name-nondirectory (nth 1 x)) ")")
                           (cdr x))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]