From 62b4edb2632bc075459b2672c4c41e117b6f60b5 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 6 Aug 2017 02:16:15 +0200 Subject: [PATCH] Fix `org-refile' with prefix argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * lisp/org.el (org-refile): Handle special file targets. Reported-by: Michaƫl Cadilhac --- lisp/org.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index bf74812a7..2c491687c 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11986,7 +11986,9 @@ prefix argument (`C-u C-u C-u C-c C-w')." (if (and arg (not (equal arg 3))) (progn (pop-to-buffer-same-window nbuf) - (goto-char pos) + (goto-char (cond (pos) + ((org-notes-order-reversed-p) (point-min)) + (t (point-max)))) (org-show-context 'org-goto)) (if regionp (progn