Tags/properties matcher: Fixed issues with todo-only matches
commit532a1ac40ad55fc092f65167eef360467c967b9d
authorIlya Shlyakhter <ilya_shl@alum.mit.edu>
Wed, 21 Mar 2012 23:49:07 +0000 (21 19:49 -0400)
committerBastien Guerry <bzg@altern.org>
Fri, 23 Mar 2012 12:42:06 +0000 (23 13:42 +0100)
tree03c4da7943fad7fcff7541fc4d46677fb1eda288
parent6ba1d35f6438ddaedac7e98c298acbb911fa7f35
Tags/properties matcher: Fixed issues with todo-only matches

lisp/org.el (org-scan-tags): Require todo-only argument, and document
that it should be the same one set by make-org-tags-matcher.
Fix documentation to explain that todo-only is really
not-done-todo-only.

(org-make-tags-matcher): If todo part of matcher starts with /!,
matcher now always checks that the TODO keyword is present and
is a not-done state.  This matters e.g. for org-map-entries
which unlike org-scan-tags does not do its own separate todo-only
filtering.  Added docs to explain matcher dependencies.

(org-map-entries): Make sure todo-only is correctly passed from
org-make-tags-matcher to org-scan-tags.

* lisp/org-clock.el: (org-clock-get-table-data): Make sure todo-only
does not leak when it is set by make-org-tags-macher.

* lisp/org-crypt.el: (org-encrypt-entries, org-decrypt-entries): Make
sure todo-only is correctly passed from org-make-tags-matcher to
org-scan-tags.

* contrib/lisp/contacts.el: (org-contacts-filter) : Make sure todo-only
is correctly passed from org-make-tags-matcher to org-scan-tags.
contrib/lisp/org-contacts.el
lisp/org-clock.el
lisp/org-crypt.el
lisp/org.el