diff --git a/lisp/org-refile.el b/lisp/org-refile.el index 20b5fbd02..c8e64903c 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))