mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
emacs: notmuch-search: avoid wiping out buffer-local variables
This commit is contained in:
parent
765ca7bc08
commit
f9fbd1ee3b
1 changed files with 5 additions and 1 deletions
|
@ -987,7 +987,11 @@ the configured default sort order."
|
|||
(if no-display
|
||||
(set-buffer buffer)
|
||||
(switch-to-buffer buffer))
|
||||
(notmuch-search-mode)
|
||||
;; avoid wiping out third party buffer-local variables in the case
|
||||
;; where we're just refreshing or changing the sort order of an
|
||||
;; existing search results buffer
|
||||
(unless (eq major-mode 'notmuch-search-mode)
|
||||
(notmuch-search-mode))
|
||||
;; Don't track undo information for this buffer
|
||||
(set 'buffer-undo-list t)
|
||||
(set 'notmuch-search-query-string query)
|
||||
|
|
Loading…
Reference in a new issue