summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2009-06-27 12:06:42 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2009-06-27 12:06:42 +0200
commitbcb0cccbe50f878993b07d6e8a49a968cb212ed0 (patch)
tree90d0d34ad279327eec22a3d164ef6f12ed8affa3
parentd3cd3f6afcd9f4c25a163cf862de0af7891fadbe (diff)
downloadorg-mode-bcb0cccbe50f878993b07d6e8a49a968cb212ed0.tar.gz
Tags-todo searches: No longer force org-tags-match-list-sublevels to t
Patrick Bahr writes: > I use tags-todo searches in my custom agenda > commands. Unfortunately, tags-todo does not honour the > org-agenda-todo-list-sublevels variable which I want to use in > order to ignore nested todo items. Is there a way to persuade > tags-todo to do this? I know that there is a variable > org-agenda-tags-todo-honor-ignore-options which does this for > org-agenda-todo-ignore-with-date etc. It would be nice if there > is something similar to this for > org-agenda-todo-list-sublevels. Even better would be if this > could be adjusted per individual tags-todo search. For example > for certain cases I do not want to see nested TODO items but I do > want to see nested WAITING items. With two tags-todo searches > having different behaviour on nested todo items this would be > feasible. This behavior is a loft-over from the old days, and I am changing this now.
-rwxr-xr-xlisp/ChangeLog6
-rw-r--r--lisp/org.el6
2 files changed, 7 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 21d4290..fbb78a8 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
+2009-06-27 Carsten Dominik <carsten.dominik@gmail.com>
+
+ * org.el (org-map-entries): No longer force
+ `org-tags-match-list-sublevels' to t during a todo-only tags
+ search.
+
2009-06-26 Carsten Dominik <carsten.dominik@gmail.com>
* org-latex.el (org-export-latex-low-levels): Allow user-defined
diff --git a/lisp/org.el b/lisp/org.el
index bcc199c..5df462d 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -2323,10 +2323,6 @@ the sublevels of a headline matching a tag search often also match
the same search. Listing all of them can create very long lists.
Setting this variable to nil causes subtrees of a match to be skipped.
-As a special case, if the tag search is restricted to TODO items, the
-value of this variable is ignored and sublevels are always checked, to
-make sure all corresponding TODO items find their way into the list.
-
This variable is semi-obsolete and probably should always be true. It
is better to limit inheritance to certain tags using the variables
`org-use-tag-inheritance' and `org-tags-exclude-from-inheritance'."
@@ -11230,7 +11226,7 @@ a *different* entry, you cannot use these techniques."
(org-agenda-skip-comment-trees (memq 'comment skip))
(org-agenda-skip-function
(car (org-delete-all '(comment archive) skip)))
- (org-tags-match-list-sublevels t)
+; ?????? (org-tags-match-list-sublevels t)
matcher file res
org-todo-keywords-for-agenda
org-done-keywords-for-agenda