org-refile: Escape slashes only in headline of refile target
commit53bcf91a967f8fb3ef5ee68b95318cdab235694e
authorSebastian Reuße <seb@wirrsal.net>
Sat, 6 May 2017 06:38:44 +0000 (6 08:38 +0200)
committerKyle Meyer <kyle@kyleam.com>
Sat, 6 May 2017 16:01:09 +0000 (6 12:01 -0400)
tree19ce77b999491934c5326f3c149a01790cc3f59a
parentac656ad7b9fa075057803f4dace543da77782e3b
org-refile: Escape slashes only in headline of refile target

* org.el (org-refile-get-targets): Only escape slashes in headline
part of refile target; leave any file-system path component (when
enabled) unescaped.

The reason to escape slashes in refile targets is to make it clear
when a slash was part of a headline vs. part of the outline path.  It
makes sense to treat slashes in the file system part the same way as
outline paths, since this won’t result in any confusion and serves to
make target selection less noisy.
lisp/org.el