From: Jameson Graef Rollins Date: Mon, 9 Apr 2012 18:36:18 +0000 (-0700) Subject: emacs: have tag-completion return all tags for nil input X-Git-Tag: 0.13_rc1~83 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=6c84116091db77c0123e12cdf8331600bf0c7769 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. --- 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