Show a message when category filter has been removed

* lisp/org-agenda.el (org-agenda-filter-by-category): Show a
message when filter has been removed.
This commit is contained in:
Carsten Dominik 2019-08-27 09:15:53 +02:00
parent 8c011126b5
commit fa792e9231
1 changed files with 3 additions and 1 deletions

View File

@ -7456,7 +7456,9 @@ With a prefix argument, exclude the lines of that category."
(interactive "P") (interactive "P")
(if (and org-agenda-filtered-by-category (if (and org-agenda-filtered-by-category
org-agenda-category-filter) org-agenda-category-filter)
(org-agenda-filter-show-all-cat) (progn
(org-agenda-filter-show-all-cat)
(message "All categories are shown"))
(let* ((categories (org-agenda-all-categories)) (let* ((categories (org-agenda-all-categories))
(defcat (org-no-properties (or (org-agenda-get-category) (defcat (org-no-properties (or (org-agenda-get-category)
(car categories)))) (car categories))))