From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: DONE items skipped in org-map-entries Date: Mon, 29 Aug 2016 00:15:53 +0200 Message-ID: <87h9a4v8ti.fsf@saiph.selenimh> References: <1472338182.3937731.708026393.1463BA38@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49992) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1be8Mx-0000pA-5J for emacs-orgmode@gnu.org; Sun, 28 Aug 2016 18:16:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1be8Mt-0003am-0D for emacs-orgmode@gnu.org; Sun, 28 Aug 2016 18:15:58 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:50846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1be8Ms-0003ai-PI for emacs-orgmode@gnu.org; Sun, 28 Aug 2016 18:15:54 -0400 In-Reply-To: <1472338182.3937731.708026393.1463BA38@webmail.messagingengine.com> (Stefan van der Walt's message of "Sat, 27 Aug 2016 15:49:42 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Stefan van der Walt Cc: emacs-orgmode@gnu.org Hello, Stefan van der Walt writes: > For a while now, I've been using the solution to the following > StackOverflow question to archive all done subitems: > > http://stackoverflow.com/a/27043756/214686 > > (I've repeated the question and answer below, for completeness.) > > A few months ago, I noticed that the given solution no longer works. > Investigating (with org-mode/2016-08-22), it looks like org-map-entries > skips DONE items---likely different behavior from before. > > The following test function can be used to replicate: > > (defun org-count () > (interactive) > (message "entries %d" (length > (org-map-entries t t 'tree)))) > > Executing this function on any heading with the "DONE" tag returns 0. > > Is this the correct behavior for org-map-entries? I'm not able to reproduce the issue. I tried with the following document ** DONE Foo *** Bar with point anywhere on the first line, `org-count' displays "entries 2". Regards, -- Nicolas Goaziou