Re: [PATCH] emacs/search: call notmuch-search-mode before popping to buffer

Subject: Re: [PATCH] emacs/search: call notmuch-search-mode before popping to buffer

Date: Thu, 19 Jun 2025 16:10:25 +0300

To: jonah, notmuch@notmuchmail.org

Cc: jonah

From: Tomi Ollila


On Sun, Jun 01 2025, jonah wrote:

> This makes derived-mode matching in display-buffer-alist work.

Change LGTM,

Tomi

> ---
>  emacs/notmuch.el | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/emacs/notmuch.el b/emacs/notmuch.el
> index 29b2a9ed..69aff347 100644
> --- a/emacs/notmuch.el
> +++ b/emacs/notmuch.el
> @@ -1091,10 +1091,10 @@ the configured default sort order."
>  
>    (let* ((query (or query (notmuch-read-query "Notmuch search: ")))
>  	 (buffer (get-buffer-create (notmuch-search-buffer-title query))))
> -    (if no-display
> -	(set-buffer buffer)
> -      (pop-to-buffer-same-window buffer))
> +    (set-buffer buffer)
>      (notmuch-search-mode)
> +    (unless no-display
> +      (pop-to-buffer-same-window buffer))
>      ;; Don't track undo information for this buffer
>      (setq buffer-undo-list t)
>      (setq notmuch-search-query-string query)
> -- 
> 2.49.0
>
> _______________________________________________
> notmuch mailing list -- notmuch@notmuchmail.org
> To unsubscribe send an email to notmuch-leave@notmuchmail.org
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: