[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-map-entries moves point
From: |
Nick Dokos |
Subject: |
Re: [O] org-map-entries moves point |
Date: |
Wed, 05 Feb 2014 15:59:21 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Florian Beck <address@hidden> 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