[PATCH 2/6] emacs: have tag-completion return all tags for nil input

Dmitry Kurochkin dmitry.kurochkin at gmail.com
Mon Apr 2 01:35:31 PDT 2012


Jameson Graef Rollins <jrollins at finestructure.net> writes:

> 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 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/emacs/notmuch.el b/emacs/notmuch.el
> index 38ae005..0ab8fc2 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 (eq search-terms nil)

Please use `null'.

Regards,
  Dmitry

> +      (setq search-terms (list "*")))
>    (split-string
>     (with-output-to-string
>       (with-current-buffer standard-output
> -- 
> 1.7.9.1
>
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch


More information about the notmuch mailing list