When I call org-map-entries with scope set to 'tree, the current heading
gets realigned to the top.
Behold:
(org-map-entries (lambda ()
;; do something or even nothing
) nil 'tree)
I think the culprit is the call to `org-agenda-prepare-buffers', or
rather commit fe3379bda6ca23474639b114592958bf14431c88, which replaces
save-excursion with save-window-excursion.
What's interesting: This does NOT restore the window configuration. When
I replace save-window-excursion with save-excursion the window
configuration is restored again.
I'm not sure *why* this happens.
--
Florian Beck