ソースを参照

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

* org.el (org-refile-check-position): Enhance error message.
Bastien Guerry 12 年 前
コミット
6f6d90a363
1 ファイル変更3 行追加1 行削除
  1. 3 1
      lisp/org.el

+ 3 - 1
lisp/org.el

@@ -11755,7 +11755,9 @@ this is used for the GOTO interface."
 	 (pos (nth 3 refile-pointer))
 	 buffer)
     (if (and (not (markerp pos)) (not file))
-	(user-error "Please save the buffer to a file before refiling")
+	(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)