diff options
| author | jonah <tschugg@posteo.de> | 2025-06-01 15:41:37 +0000 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2025-06-20 12:57:18 -0300 |
| commit | 63665f1ebd6eff7753b7798add657fd6dbd110d6 (patch) | |
| tree | 7ba413409c72c831063583d2b2691dd5a75a1658 /emacs | |
| parent | babacbd1b188004b388033cf20662eda51965365 (diff) | |
emacs/search: call notmuch-search-mode before popping to buffer
This makes derived-mode matching in display-buffer-alist work.
Diffstat (limited to 'emacs')
| -rw-r--r-- | emacs/notmuch.el | 6 |
1 files 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) |
