mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 13:44:12 +01:00
emacs: have tag-completion return all tags for nil input
Previously the function would fail if the initial input was nil. Now it will return a list of all tags, which obviously makes much more sense.
This commit is contained in:
parent
f9ad237273
commit
6c84116091
1 changed files with 2 additions and 0 deletions
|
@ -85,6 +85,8 @@ For example:
|
||||||
`notmuch-read-tag-changes' function.")
|
`notmuch-read-tag-changes' function.")
|
||||||
|
|
||||||
(defun notmuch-tag-completions (&optional search-terms)
|
(defun notmuch-tag-completions (&optional search-terms)
|
||||||
|
(if (null search-terms)
|
||||||
|
(setq search-terms (list "*")))
|
||||||
(split-string
|
(split-string
|
||||||
(with-output-to-string
|
(with-output-to-string
|
||||||
(with-current-buffer standard-output
|
(with-current-buffer standard-output
|
||||||
|
|
Loading…
Reference in a new issue