emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] org-map-entries moves point


From: Florian Beck
Subject: [O] org-map-entries moves point
Date: Wed, 05 Feb 2014 20:49:05 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]