From 6c84116091db77c0123e12cdf8331600bf0c7769 Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Mon, 9 Apr 2012 11:36:18 -0700 Subject: [PATCH] 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. --- emacs/notmuch.el | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.43.0