summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Reuße <seb@wirrsal.net>2017-05-15 14:54:55 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2017-05-17 14:37:54 +0200
commit2906e50177d47b4f4a0e75532a0c9dcc9cf72824 (patch)
tree0217be795b75573bbec04c69f7736daa2b999022
parent865ac0952b7ee07a2b57cc72c71e4024a0111609 (diff)
downloadorg-mode-2906e50177d47b4f4a0e75532a0c9dcc9cf72824.tar.gz
org-refile: Fix inconsistency when listing refile targets
* org.el (org-refile-get-targets): Setting org-refile-use-outline-path to `file' or `buffer-name' causes an additional target for the file’s root node to be inserted. This functionality was absent when using `full-file-path'. We now add this since it is convenient and makes the behavior more consistent.
-rw-r--r--lisp/org.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 97713c5..28277e3 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -11563,6 +11563,8 @@ order.")
(push (list (file-name-nondirectory f) f nil nil) tgs))
(when (eq org-refile-use-outline-path 'buffer-name)
(push (list (buffer-name (buffer-base-buffer)) f nil nil) tgs))
+ (when (eq org-refile-use-outline-path 'full-file-path)
+ (push (list (file-truename (buffer-file-name (buffer-base-buffer))) f nil nil) tgs))
(org-with-wide-buffer
(goto-char (point-min))
(setq org-outline-path-cache nil)