diff options
author | Nathaniel Flath <flat0103@gmail.com> | 2017-07-12 17:15:04 -0700 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2017-07-16 16:58:35 -0400 |
commit | 404ac42ee51f0ac0d9cfb8fbefaefbbe96c61017 (patch) | |
tree | 300fa07437272207d08de3229f3f552dc34a0ae7 | |
parent | 8d9854ca8a462e61c53e4e57f87967e079cfe36f (diff) | |
download | org-mode-404ac42ee51f0ac0d9cfb8fbefaefbbe96c61017.tar.gz |
org-agenda-filter-by-tag: Only accept existing tags
* org-agenda.el (org-agenda-filter-by-tag): Pass t for the
require-match argument of completing-read because the collection
includes all valid tags.
In addition to preventing a user from filtering on a value that
doesn't match any entries, this makes the default Emacs completion
more convenient because a tag can be selected by entering its unique
prefix.
-rw-r--r-- | lisp/org-agenda.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 4cbc2a6..5984618 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -7597,7 +7597,7 @@ also press `-' or `+' to switch between filtering and excluding." (org-global-tags-completion-table))) (let ((completion-ignore-case t)) (setq tag (completing-read - "Tag: " org-global-tags-completion-table)))) + "Tag: " org-global-tags-completion-table nil t)))) (cond ((eq char ?\r) (org-agenda-filter-show-all-tag) |