emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [PATCH 2/2] org-refile: Fix inconsistency when listing refile ta


From: Allen Li
Subject: Re: [O] [PATCH 2/2] org-refile: Fix inconsistency when listing refile targets
Date: Wed, 21 Jun 2017 00:05:45 -0700

On Mon, May 15, 2017 at 5:54 AM, Sebastian Reuße <address@hidden> wrote:
> * 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.
> ---
>  lisp/org.el | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/lisp/org.el b/lisp/org.el
> index 97713c523..28277e352 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -11563,6 +11563,8 @@ (defun org-refile-get-targets (&optional 
> default-buffer)
>                  (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)
> --
> 2.13.0
>
>

If I'm not mistaken, the full file path needs to be wrapped in
org-protect-slash?



reply via email to

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