From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: org-map-entries narrows to subtree Date: Sun, 11 Jan 2009 19:26:54 +0100 Message-ID: <871vv9og0h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LM51R-0003L0-Mc for emacs-orgmode@gnu.org; Sun, 11 Jan 2009 13:26:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LM51Q-0003Ko-Up for emacs-orgmode@gnu.org; Sun, 11 Jan 2009 13:26:53 -0500 Received: from [199.232.76.173] (port=55908 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LM51Q-0003Kh-Rf for emacs-orgmode@gnu.org; Sun, 11 Jan 2009 13:26:52 -0500 Received: from mail-ew0-f15.google.com ([209.85.219.15]:54250) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LM51Q-0003sc-Fl for emacs-orgmode@gnu.org; Sun, 11 Jan 2009 13:26:52 -0500 Received: by ewy8 with SMTP id 8so682951ewy.18 for ; Sun, 11 Jan 2009 10:26:49 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode mailing list 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