emacs-orgmode
[Top][All Lists]
Advanced

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

[BUG] org-refile-get-location a symlinked file [9.7-pre (release_9.6.29-


From: Al Haji-Ali
Subject: [BUG] org-refile-get-location a symlinked file [9.7-pre (release_9.6.29-1443-gb4d17c)]
Date: Mon, 17 Jun 2024 16:51:27 +0100

I have `org-refile-use-outline-path` set to t, expecting that when refiling, 
the filename should not appear in the list. However, because I am opening an 
org file using a symblink and I have `find-file-visit-truename` set to `t`, the 
test

`(not (equal filename (nth 1 x)))`

in `org-refile-get-location` always fails and the filename is displayed even 
when the current buffer and `(nth 1 x)` point to the same file. If I replace 
this condition by

`(not (equal (file-truename filename) (file-truename (nth 1 x))))`

The filename is not added to the list of refile targets as I would expect.

-- Al

--
Emacs  : GNU Emacs 29.1 (build 1, aarch64-apple-darwin22.5.0, Carbon Version 
169 AppKit 2299.6)
 of 2023-09-09
Package: Org mode version 9.7-pre (release_9.6.29-1443-gb4d17c)




reply via email to

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