Al Haji-Ali <abdo.haji....@gmail.com> writes:

> 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.

Makes sense.
May you prepare a patch with the proposed change?
See https://orgmode.org/worg/org-contribute.html#first-patch

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to