Re: [Orgmode] Todo item property search

2010-09-03 Thread Bastien
Carsten Dominik carsten.domi...@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

___
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


Re: [Orgmode] Todo item property search

2010-09-03 Thread Carsten Dominik

Sure, please apply it.

- Carsten

On Sep 3, 2010, at 10:19 AM, Bastien wrote:


Carsten Dominik carsten.domi...@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




___
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


Re: [Orgmode] Todo item property search

2010-09-03 Thread Carsten Dominik

Sure, please apply it.

- Carsten

On Sep 3, 2010, at 10:19 AM, Bastien wrote:


Carsten Dominik carsten.domi...@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




___
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


Re: [Orgmode] Todo item property search

2010-09-03 Thread Bastien
Carsten Dominik carsten.domi...@gmail.com writes:

 Sure, please apply it.

Done!

-- 
 Bastien

___
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


Re: [Orgmode] Todo item property search

2010-09-02 Thread Bastien
Chevalier Julien jcpcheval...@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

___
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


Re: [Orgmode] Todo item property search

2010-09-02 Thread Carsten Dominik


On Sep 3, 2010, at 1:04 AM, Bastien wrote:


Chevalier Julien jcpcheval...@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

___
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