From 3ec38f5c064c3270f54876ba33c5ca1097b46853 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Thu, 14 Mar 2013 14:40:00 +0100 Subject: [PATCH] org.el (org-map-entries): Use `save-window-excursion' * org.el (org-map-entries): Use `save-window-excursion'. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 66c79f5ed..52ae163f3 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -14638,7 +14638,7 @@ a *different* entry, you cannot use these techniques." ((eq match nil) (setq matcher t)) (t (setq matcher (if match (cdr (org-make-tags-matcher match)) t)))) - (save-excursion + (save-window-excursion (save-restriction (cond ((eq scope 'tree) (org-back-to-heading t)