Improve documentation string of `org-agenda-filter-by-regexp'

* lisp/org-agenda.el (org-agenda-filter-by-regexp): Improve docstring.
This commit is contained in:
Carsten Dominik 2019-09-06 15:49:04 +02:00
parent c580a290ac
commit c47a7394a0
1 changed files with 6 additions and 4 deletions

View File

@ -7512,11 +7512,13 @@ The top headline is that of the current line."
(defvar org-agenda-regexp-filter nil) (defvar org-agenda-regexp-filter nil)
(defun org-agenda-filter-by-regexp (strip) (defun org-agenda-filter-by-regexp (strip)
"Filter agenda entries by regular expressions. "Filter agenda entries by a regular expressions.
You will be prompted for the regular expresssion, and the agenda
view will only show entires that are matched by that expression.
With one prefix argument, filter out entries matching the regexp. With one `\\[universal-argument]' prefix argument, filter out entries matching the regexp.
If there is already a regexp filter, remove it unless called with With two `\\[universal-argument]' prefix arguments, add the new condition to an already existing
two prefix arguments." regexp filter."
(interactive "P") (interactive "P")
(cond (cond
((and org-agenda-regexp-filter (not (equal strip '(16)))) ((and org-agenda-regexp-filter (not (equal strip '(16))))