0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-26 13:32:51 +00:00

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.
This commit is contained in:
Carsten Dominik 2009-03-19 10:48:43 +01:00
parent aaedf7d01a
commit d48a1e49e2

View file

@ -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))