From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: map bug Date: Tue, 2 Dec 2008 16:55:06 +0100 Message-ID: References: <20524da70811292237h40b183f9he6daf255283f4855@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7Xah-0008QC-QW for emacs-orgmode@gnu.org; Tue, 02 Dec 2008 10:55:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7Xah-0008Ps-15 for emacs-orgmode@gnu.org; Tue, 02 Dec 2008 10:55:11 -0500 Received: from [199.232.76.173] (port=35222 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7Xag-0008Pn-Qv for emacs-orgmode@gnu.org; Tue, 02 Dec 2008 10:55:10 -0500 Received: from ey-out-1920.google.com ([74.125.78.146]:53030) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L7Xag-0006KC-7z for emacs-orgmode@gnu.org; Tue, 02 Dec 2008 10:55:10 -0500 Received: by ey-out-1920.google.com with SMTP id 4so1367026eyg.24 for ; Tue, 02 Dec 2008 07:55:08 -0800 (PST) In-Reply-To: <20524da70811292237h40b183f9he6daf255283f4855@mail.gmail.com> 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: Samuel Wales Cc: emacs-orgmode@gnu.org Fixed, thanks for the report. Please note that aside from bigs in the mapping function, also the example in the manual was wrong. You should use this: (length (org-map-entries t "/+WAITING" 'agenda)) HTH - Carsten On Nov 30, 2008, at 7:37 AM, Samuel Wales wrote: > Manual says: > > The following example counts the number of entries with TODO keyword > WAITING, in all agenda files. > > (length (org-map-entries t "/+WAITING" nil 'agenda)) > > Org says invalid function for the string. > > Newest release. > > -- > Myalgic encephalomyelitis denialists are knowingly causing further > suffering and death by opposing biomedical research on this serious > infectious disease. Do you care about the world? > http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm > > > _______________________________________________ > 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