emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Daniel Clemente <n142857@gmail.com>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: org-map-entries narrows to subtree
Date: Sat, 17 Jan 2009 08:58:45 +0100	[thread overview]
Message-ID: <3C5466AD-C933-4668-AF0C-1EC83E7098A0@uva.nl> (raw)
In-Reply-To: <871vv9og0h.fsf@gmail.com>


[-- 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

      parent reply	other threads:[~2009-01-17  7:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-11 18:26 Daniel Clemente
2009-01-11 18:36 ` Daniel Clemente
2009-01-11 20:59   ` Eric Schulte
2009-01-17  7:58 ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C5466AD-C933-4668-AF0C-1EC83E7098A0@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=n142857@gmail.com \
    --subject='Re: org-map-entries narrows to subtree' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).