mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 20:07:46 +00:00
org-agenda.el: Fix bug when using category filters
* lisp/org-agenda.el (org-agenda-filter-make-matcher): Use `or' for category filters, `and' for other filters. For example, when using `org-agenda-category-filter-preset' set to '("+cat1" "+cat2"), using `and' in the filter matcher results in displaying 0 headline, since no headline can have two categories.
This commit is contained in:
parent
36cd249e75
commit
06cf532f47
|
@ -7926,7 +7926,7 @@ tags in the FILTER if any of the tags in FILTER are grouptags."
|
||||||
filter)))
|
filter)))
|
||||||
(dolist (x filter)
|
(dolist (x filter)
|
||||||
(push (org-agenda-filter-effort-form x) f))))
|
(push (org-agenda-filter-effort-form x) f))))
|
||||||
(cons 'and (nreverse f))))
|
(cons (if (eq type 'category) 'or 'and) (nreverse f))))
|
||||||
|
|
||||||
(defun org-agenda-filter-make-matcher-tag-exp (tags op)
|
(defun org-agenda-filter-make-matcher-tag-exp (tags op)
|
||||||
"Return a form associated to tag-expression TAGS.
|
"Return a form associated to tag-expression TAGS.
|
||||||
|
|
Loading…
Reference in a new issue