From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chevalier Julien Subject: Todo item property search Date: Thu, 2 Sep 2010 09:57:28 +0000 (GMT) Message-ID: <38124.40111.qm@web29612.mail.ird.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2030390950==" Return-path: Received: from [140.186.70.92] (port=42740 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Or6bZ-0002QF-Ad for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 06:05:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Or6Xz-00010Y-8w for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 05:57:32 -0400 Received: from web29612.mail.ird.yahoo.com ([77.238.189.168]:42360) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Or6Xy-00010G-W5 for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 05:57:31 -0400 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: emacs-orgmode@gnu.org --===============2030390950== Content-Type: multipart/alternative; boundary="0-796953-1283421448=:40111" --0-796953-1283421448=:40111 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi list=0A=0AI would like to search for all my todo items along the propert= ies they have or not. =0A=0ABest example is :=0AHow can i build a sparse tr= ee of all my unscheduled todo items ?=0A=0ASparse tree search options don&#= 39;t seam enough and i cant figure out how is working the org-agenda-tags-t= odo-honor-ignore-options=0A=0ACan anyone help ?=0A=0ARegards =0A=0AJulien = =0A=0A=0A --0-796953-1283421448=:40111 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi list

I would like to search= for all my todo items along the properties they have or not.

B= est example is :
How can i build a sparse tree of all my unscheduled t= odo items ?

Sparse tree search options don't seam enough and= i cant figure out how is working the org-agenda-tags-todo-honor-ignore-opt= ions

Can anyone help ?

Regards

Julien

=0A=0A=0A=0A=0A --0-796953-1283421448=:40111-- --===============2030390950== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============2030390950==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Todo item property search Date: Fri, 03 Sep 2010 01:04:20 +0200 Message-ID: <87occfzr0r.fsf@gnu.org> References: <38124.40111.qm@web29612.mail.ird.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=45928 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrIpT-0006UZ-Mf for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 19:04:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrIpP-0006R3-2u for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 19:04:20 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:45058) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrIpO-0006Qw-TC for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 19:04:19 -0400 Received: by wwb24 with SMTP id 24so1326439wwb.30 for ; Thu, 02 Sep 2010 16:04:18 -0700 (PDT) In-Reply-To: <38124.40111.qm@web29612.mail.ird.yahoo.com> (Chevalier Julien's message of "Thu, 2 Sep 2010 09:57:28 +0000 (GMT)") 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: Chevalier Julien Cc: emacs-orgmode@gnu.org 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.) Carsten, any idea why? -- Bastien 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Todo item property search Date: Fri, 03 Sep 2010 10:19:55 +0200 Message-ID: <87r5hbxmqc.fsf@gnu.org> References: <38124.40111.qm@web29612.mail.ird.yahoo.com> <87occfzr0r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=43448 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrRV6-0002ri-87 for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 04:19:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrRV4-0003lG-Td for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 04:19:56 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:51518) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrRV4-0003l5-Pf for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 04:19:54 -0400 Received: by wwb24 with SMTP id 24so1886104wwb.30 for ; Fri, 03 Sep 2010 01:19:53 -0700 (PDT) In-Reply-To: (Carsten Dominik's message of "Fri, 3 Sep 2010 07:02:39 +0200") 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: Carsten Dominik Cc: Chevalier Julien , emacs-orgmode@gnu.org Carsten Dominik writes: > Hi Bastien, the todo tree does not use the tags scanner, so the > skipper is completely ignored here. Okay, thanks for the precision. Here is a patch that makes it clear in the manual. Shall I apply it? diff --git a/doc/org.texi b/doc/org.texi index 4ce32ce..71d1823 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -13781,10 +13781,11 @@ written in a way such that it does nothing in buffers that are not in @section Special agenda views @cindex agenda views, user-defined -Org provides a special hook that can be used to narrow down the -selection made by any of the agenda views. You may specify a function -that is used at each match to verify if the match should indeed be part -of the agenda view, and if not, how much should be skipped. +Org provides a special hook that can be used to narrow down the selection +made by these agenda views: @code{todo}, @code{alltodo}, @code{tags}, @code{tags-todo}, +@code{tags-tree}. You may specify a function that is used at each match to verify +if the match should indeed be part of the agenda view, and if not, how +much should be skipped. Let's say you want to produce a list of projects that contain a WAITING tag anywhere in the project tree. Let's further assume that you have -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Todo item property search Date: Fri, 3 Sep 2010 10:47:56 +0200 Message-ID: <5E523A20-283D-4FE0-AFCB-62DC4DAD186C@gmail.com> References: <38124.40111.qm@web29612.mail.ird.yahoo.com> <87occfzr0r.fsf@gnu.org> <87r5hbxmqc.fsf@gnu.org> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=43608 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrRxZ-0003Ew-Gz for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 04:49:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrRxY-0000Vt-BY for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 04:49:21 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:40294) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrRxY-0000Vn-5n for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 04:49:20 -0400 Received: by ewy28 with SMTP id 28so1047870ewy.0 for ; Fri, 03 Sep 2010 01:49:18 -0700 (PDT) In-Reply-To: <87r5hbxmqc.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 Sure, please apply it. - Carsten On Sep 3, 2010, at 10:19 AM, Bastien wrote: > Carsten Dominik writes: > >> Hi Bastien, the todo tree does not use the tags scanner, so the >> skipper is completely ignored here. > > Okay, thanks for the precision. > > Here is a patch that makes it clear in the manual. Shall I apply it? > > diff --git a/doc/org.texi b/doc/org.texi > index 4ce32ce..71d1823 100644 > --- a/doc/org.texi > +++ b/doc/org.texi > @@ -13781,10 +13781,11 @@ written in a way such that it does nothing > in buffers that are not in > @section Special agenda views > @cindex agenda views, user-defined > > -Org provides a special hook that can be used to narrow down the > -selection made by any of the agenda views. You may specify a > function > -that is used at each match to verify if the match should indeed be > part > -of the agenda view, and if not, how much should be skipped. > +Org provides a special hook that can be used to narrow down the > selection > +made by these agenda views: @code{todo}, @code{alltodo}, > @code{tags}, @code{tags-todo}, > +@code{tags-tree}. You may specify a function that is used at each > match to verify > +if the match should indeed be part of the agenda view, and if not, > how > +much should be skipped. > > Let's say you want to produce a list of projects that contain a > WAITING > tag anywhere in the project tree. Let's further assume that you have > > -- > Bastien - Carsten From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Todo item property search Date: Fri, 3 Sep 2010 10:49:23 +0200 Message-ID: <0FD9D466-82C4-47A4-8952-82FE708C72B4@gmail.com> References: <38124.40111.qm@web29612.mail.ird.yahoo.com> <87occfzr0r.fsf@gnu.org> <87r5hbxmqc.fsf@gnu.org> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=43631 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrRxf-0003Gg-Ez for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 04:49:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrRxe-0000Wt-Cv for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 04:49:27 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:59762) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrRxe-0000Wh-7v for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 04:49:26 -0400 Received: by eyh5 with SMTP id 5so1043570eyh.0 for ; Fri, 03 Sep 2010 01:49:25 -0700 (PDT) In-Reply-To: <87r5hbxmqc.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 Sure, please apply it. - Carsten On Sep 3, 2010, at 10:19 AM, Bastien wrote: > Carsten Dominik writes: > >> Hi Bastien, the todo tree does not use the tags scanner, so the >> skipper is completely ignored here. > > Okay, thanks for the precision. > > Here is a patch that makes it clear in the manual. Shall I apply it? > > diff --git a/doc/org.texi b/doc/org.texi > index 4ce32ce..71d1823 100644 > --- a/doc/org.texi > +++ b/doc/org.texi > @@ -13781,10 +13781,11 @@ written in a way such that it does nothing > in buffers that are not in > @section Special agenda views > @cindex agenda views, user-defined > > -Org provides a special hook that can be used to narrow down the > -selection made by any of the agenda views. You may specify a > function > -that is used at each match to verify if the match should indeed be > part > -of the agenda view, and if not, how much should be skipped. > +Org provides a special hook that can be used to narrow down the > selection > +made by these agenda views: @code{todo}, @code{alltodo}, > @code{tags}, @code{tags-todo}, > +@code{tags-tree}. You may specify a function that is used at each > match to verify > +if the match should indeed be part of the agenda view, and if not, > how > +much should be skipped. > > Let's say you want to produce a list of projects that contain a > WAITING > tag anywhere in the project tree. Let's further assume that you have > > -- > Bastien - Carsten From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Todo item property search Date: Fri, 03 Sep 2010 10:58:04 +0200 Message-ID: <8762ynw6eb.fsf@gnu.org> References: <38124.40111.qm@web29612.mail.ird.yahoo.com> <87occfzr0r.fsf@gnu.org> <87r5hbxmqc.fsf@gnu.org> <0FD9D466-82C4-47A4-8952-82FE708C72B4@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=39028 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrS61-0005Qh-Sq for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 04:58:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrS60-0001tL-H0 for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 04:58:05 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:54412) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrS60-0001tF-Bh for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 04:58:04 -0400 Received: by wyb36 with SMTP id 36so1658532wyb.0 for ; Fri, 03 Sep 2010 01:58:03 -0700 (PDT) In-Reply-To: <0FD9D466-82C4-47A4-8952-82FE708C72B4@gmail.com> (Carsten Dominik's message of "Fri, 3 Sep 2010 10:49:23 +0200") 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: Carsten Dominik Cc: Chevalier Julien , emacs-orgmode@gnu.org Carsten Dominik writes: > Sure, please apply it. Done! -- Bastien