diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2012-04-09 11:36:18 -0700 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-04-12 15:34:49 -0300 |
commit | 6c84116091db77c0123e12cdf8331600bf0c7769 (patch) | |
tree | b89f344d4a493db505e4cdc9b1d4b1a0fa0f7d72 /emacs | |
parent | f9ad2372732b4a114306b4bb6e9b37d9173095aa (diff) |
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.
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/notmuch.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 8b48399..ba833e6 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -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 |