Explorar o código

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.
Carsten Dominik %!s(int64=16) %!d(string=hai) anos
pai
achega
d48a1e49e2
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      lisp/org.el

+ 2 - 1
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))