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:
Jameson Graef Rollins 2012-04-09 11:36:18 -07:00 committed by David Bremner
parent f9ad237273
commit 6c84116091

View file

@ -85,6 +85,8 @@ For example:
`notmuch-read-tag-changes' function.")
(defun notmuch-tag-completions (&optional search-terms)
(if (null search-terms)
(setq search-terms (list "*")))
(split-string
(with-output-to-string
(with-current-buffer standard-output