aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Jameson Graef Rollins <jrollins@finestructure.net>2012-04-09 11:36:18 -0700
committerGravatar David Bremner <bremner@debian.org>2012-04-12 15:34:49 -0300
commit6c84116091db77c0123e12cdf8331600bf0c7769 (patch)
treeb89f344d4a493db505e4cdc9b1d4b1a0fa0f7d72 /emacs
parentf9ad2372732b4a114306b4bb6e9b37d9173095aa (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.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 8b483995..ba833e64 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