Florian Beck <f...@miszellen.de> writes: > 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.
John Kitchin reported this last week and Bastien reverted that commit: http://thread.gmane.org/gmane.emacs.orgmode/81587 But it's not clear *why* that commit was done in the first place so if you get some enlightenment from your experiments, please share. Nick