org.el (org-refile-check-position): Enhance error message

* org.el (org-refile-check-position): Enhance error message.
This commit is contained in:
Bastien Guerry 2013-11-14 00:53:43 +01:00
parent 6a39355eee
commit 6f6d90a363
1 changed files with 3 additions and 1 deletions

View File

@ -11755,7 +11755,9 @@ this is used for the GOTO interface."
(pos (nth 3 refile-pointer))
buffer)
(if (and (not (markerp pos)) (not file))
(if file
(user-error "Please save the buffer to a file before refiling")
(user-error "Please indicate a target file in the refile path"))
(when (org-string-nw-p re)
(setq buffer (if (markerp pos)
(marker-buffer pos)