From d48a1e49e2ef6b109fa0d2d48045f5d41b3e2c83 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Thu, 19 Mar 2009 10:48:43 +0100 Subject: [PATCH] Refile: Don't error for self-refile when only going to a place Refiling checks if an entry is refiled to itself. Of course, this check is irrelevant when using refile to jump to a location. --- lisp/org.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index dbe6f132a..05730ac1e 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -8137,7 +8137,8 @@ operation has put the subtree." (setq file (nth 1 it) re (nth 2 it) pos (nth 3 it)) - (if (and (equal (buffer-file-name) file) + (if (and (not goto) + (equal (buffer-file-name) file) (if regionp (and (>= pos region-start) (<= pos region-end)) -- 2.11.4.GIT