Browse Source

org-agenda.el (org-agenda-archive-with): Save window excursion

* org-agenda.el (org-agenda-archive-with): Save window
excursion.
Bastien Guerry 11 years ago
parent
commit
ce08e04629
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-agenda.el

+ 1 - 1
lisp/org-agenda.el

@@ -8378,7 +8378,7 @@ Point is in the buffer where the item originated.")
 	    (if (and confirm
 		     (not (y-or-n-p "Archive this subtree or entry? ")))
 		(error "Abort")
-	      (save-excursion
+	      (save-window-excursion
 		(goto-char pos)
 		(let ((org-agenda-buffer-name bufname-orig))
 		  (org-remove-subtree-entries-from-agenda))