[PATCH 5/5] emacs: make show set --exclude=flag

Austin Clements amdragon at MIT.EDU
Sat Mar 17 09:52:15 PDT 2012


Quoth Mark Walters on Mar 15 at  6:42 pm:
> Show has to set --exclude=flag to deal with cases where it is asked
> to show a single excluded message. It uses JSON so it can easily pass
> the exclude information to the user.
> ---
>  emacs/notmuch-show.el |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
> index 4a60631..8ab2485 100644
> --- a/emacs/notmuch-show.el
> +++ b/emacs/notmuch-show.el
> @@ -1099,13 +1099,15 @@ function is used."
>  		       (append (list "\'") basic-args
>  			       (list "and (" notmuch-show-query-context ")\'"))
>  		     (append (list "\'") basic-args (list "\'")))))
> -	(notmuch-show-insert-forest (notmuch-query-get-threads args))
> +	(notmuch-show-insert-forest (notmuch-query-get-threads
> +				     (append (list "--exclude=flag") args)))

(cons "--exclude=flag" args)

>  	;; If the query context reduced the results to nothing, run
>  	;; the basic query.
>  	(when (and (eq (buffer-size) 0)
>  		   notmuch-show-query-context)
>  	  (notmuch-show-insert-forest
> -	   (notmuch-query-get-threads basic-args))))
> +	   (notmuch-query-get-threads
> +	    (append (list "--exclude=flag") basic-args)))))

Same here.

>  
>        (jit-lock-register #'notmuch-show-buttonise-links)
>  


More information about the notmuch mailing list