Browse Source

org-agenda.el: Don't always display a message when removing filters

* lisp/org-agenda.el (org-agenda-filter-remove-all): Only display
a message when called interactively.
Bastien 5 months ago
parent
commit
8c943b8403
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/org-agenda.el

+ 2 - 1
lisp/org-agenda.el

@@ -7766,7 +7766,8 @@ which see."
   (when org-agenda-effort-filter
     (org-agenda-filter-show-all-effort))
   (org-agenda-finalize)
-  (message "All agenda filters removed"))
+  (when (called-interactively-p 'interactive)
+    (message "All agenda filters removed")))
 
 (defun org-agenda-filter-by-tag (strip-or-accumulate &optional char exclude)
   "Keep only those lines in the agenda buffer that have a specific tag.