Hi. After you eval this (for instance to count the number of headlines under a tree): (org-map-entries 'ignore t 'tree) you end up with a different view of the buffer because (org-narrow-to-subtree) was called. This seems an unwanted side effect since narrowing is not org-map-entries' job. Should (save-excursion) be used inside (org-map-entries ... 'tree) ? -- Daniel
Daniel Clemente <n142857@gmail.com> writes:
> Should (save-excursion) be used inside (org-map-entries ... 'tree) ?
Sorry, I meant (save-restriction)
Daniel Clemente <n142857@gmail.com> writes:
> Daniel Clemente <n142857@gmail.com> writes:
>
>> Should (save-excursion) be used inside (org-map-entries ... 'tree) ?
>
> Sorry, I meant (save-restriction)
>
I would like to second this request, I often find myself calling (widen)
after using org-map-entries. -- Eric
[-- Attachment #1.1: Type: text/plain, Size: 493 bytes --] On Jan 11, 2009, at 7:26 PM, Daniel Clemente wrote: > > Hi. After you eval this (for instance to count the number of > headlines under a tree): > > (org-map-entries 'ignore t 'tree) > > you end up with a different view of the buffer because (org-narrow- > to-subtree) was called. This seems an unwanted side effect since > narrowing is not org-map-entries' job. > > Should (save-excursion) be used inside (org-map-entries ... 'tree) ? Yes, I have made this change, thanks. - Carsten [-- Attachment #1.2: Type: text/html, Size: 940 bytes --] [-- Attachment #2: Type: text/plain, Size: 204 bytes --] _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode