From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Todo item property search Date: Fri, 3 Sep 2010 07:02:39 +0200 Message-ID: References: <38124.40111.qm@web29612.mail.ird.yahoo.com> <87occfzr0r.fsf@gnu.org> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=39578 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrOQM-0007EV-D5 for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 01:02:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrOQH-0007qt-7S for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 01:02:50 -0400 Received: from pony.ic.uva.nl ([145.18.40.181]:38706) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrOQH-0007qX-0r for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 01:02:45 -0400 In-Reply-To: <87occfzr0r.fsf@gnu.org> 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: Bastien Cc: Chevalier Julien , emacs-orgmode@gnu.org On Sep 3, 2010, at 1:04 AM, Bastien wrote: > Chevalier Julien writes: > >> How can i build a sparse tree of all my unscheduled todo items ? > > ,---- > | (setq org-agenda-custom-commands > | '(("u" todo "TODO" > | ((org-agenda-todo-ignore-with-date t) > | (org-agenda-tags-todo-honor-ignore-options t))))) > `---- > > Will show unscheduled TODO items as a TODO list. > > AFAIU, org-agenda-tags-todo-honor-ignore-options won't work for > todo-tree because they are only useful for todo and tags searches. > > So I thought this would work: > > ,---- > | (setq org-agenda-custom-commands > | '(("u" todo-tree "TODO" > | ((org-agenda-skip-function > | (lambda () > | (if (not (org-entry-get nil "SCHEDULED")) > | (progn (outline-next-heading) (point))))))))) > `---- > > ... but it doesn't (i.e. it doesn't create a sparse tree of TODO items > that don't have a SCHEDULED property.) Hi Bastien, the todo tree does not use the tags scanner, so the skipper is completely ignored here. - Carsten