emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] DONE items skipped in org-map-entries


From: Nicolas Goaziou
Subject: Re: [O] DONE items skipped in org-map-entries
Date: Mon, 29 Aug 2016 00:15:53 +0200

Hello,

Stefan van der Walt <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]