* Todo item property search @ 2010-09-02 9:57 Chevalier Julien 2010-09-02 23:04 ` Bastien 0 siblings, 1 reply; 7+ messages in thread From: Chevalier Julien @ 2010-09-02 9:57 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1.1: Type: text/plain, Size: 374 bytes --] Hi list I would like to search for all my todo items along the properties they have or not. Best example is : How can i build a sparse tree of all my unscheduled todo items ? Sparse tree search options don't seam enough and i cant figure out how is working the org-agenda-tags-todo-honor-ignore-options Can anyone help ? Regards Julien [-- Attachment #1.2: Type: text/html, Size: 557 bytes --] [-- Attachment #2: Type: text/plain, Size: 201 bytes --] _______________________________________________ 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Todo item property search 2010-09-02 9:57 Todo item property search Chevalier Julien @ 2010-09-02 23:04 ` Bastien 2010-09-03 5:02 ` Carsten Dominik 0 siblings, 1 reply; 7+ messages in thread From: Bastien @ 2010-09-02 23:04 UTC (permalink / raw) To: Chevalier Julien; +Cc: emacs-orgmode Chevalier Julien <jcpchevalier@yahoo.fr> 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Todo item property search 2010-09-02 23:04 ` Bastien @ 2010-09-03 5:02 ` Carsten Dominik 2010-09-03 8:19 ` Bastien 0 siblings, 1 reply; 7+ messages in thread From: Carsten Dominik @ 2010-09-03 5:02 UTC (permalink / raw) To: Bastien; +Cc: Chevalier Julien, emacs-orgmode On Sep 3, 2010, at 1:04 AM, Bastien wrote: > Chevalier Julien <jcpchevalier@yahoo.fr> 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Todo item property search 2010-09-03 5:02 ` Carsten Dominik @ 2010-09-03 8:19 ` Bastien 2010-09-03 8:47 ` Carsten Dominik 2010-09-03 8:49 ` Carsten Dominik 0 siblings, 2 replies; 7+ messages in thread From: Bastien @ 2010-09-03 8:19 UTC (permalink / raw) To: Carsten Dominik; +Cc: Chevalier Julien, emacs-orgmode Carsten Dominik <carsten.dominik@gmail.com> 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 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: Todo item property search 2010-09-03 8:19 ` Bastien @ 2010-09-03 8:47 ` Carsten Dominik 2010-09-03 8:49 ` Carsten Dominik 1 sibling, 0 replies; 7+ messages in thread From: Carsten Dominik @ 2010-09-03 8:47 UTC (permalink / raw) To: Bastien; +Cc: Chevalier Julien, emacs-orgmode Sure, please apply it. - Carsten On Sep 3, 2010, at 10:19 AM, Bastien wrote: > Carsten Dominik <carsten.dominik@gmail.com> 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Todo item property search 2010-09-03 8:19 ` Bastien 2010-09-03 8:47 ` Carsten Dominik @ 2010-09-03 8:49 ` Carsten Dominik 2010-09-03 8:58 ` Bastien 1 sibling, 1 reply; 7+ messages in thread From: Carsten Dominik @ 2010-09-03 8:49 UTC (permalink / raw) To: Bastien; +Cc: Chevalier Julien, emacs-orgmode Sure, please apply it. - Carsten On Sep 3, 2010, at 10:19 AM, Bastien wrote: > Carsten Dominik <carsten.dominik@gmail.com> 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Todo item property search 2010-09-03 8:49 ` Carsten Dominik @ 2010-09-03 8:58 ` Bastien 0 siblings, 0 replies; 7+ messages in thread From: Bastien @ 2010-09-03 8:58 UTC (permalink / raw) To: Carsten Dominik; +Cc: Chevalier Julien, emacs-orgmode Carsten Dominik <carsten.dominik@gmail.com> writes: > Sure, please apply it. Done! -- Bastien ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-09-03 8:58 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-09-02 9:57 Todo item property search Chevalier Julien 2010-09-02 23:04 ` Bastien 2010-09-03 5:02 ` Carsten Dominik 2010-09-03 8:19 ` Bastien 2010-09-03 8:47 ` Carsten Dominik 2010-09-03 8:49 ` Carsten Dominik 2010-09-03 8:58 ` Bastien
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).