]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch.el
Revert "emacs: notmuch-search: avoid wiping out buffer-local variables"
[notmuch] / emacs / notmuch.el
index 95770fc3034e067ca4ec2cf39773b14be9527b3b..132e7724d3fabe61f50f3338bd0e7f8111441d54 100644 (file)
@@ -994,11 +994,7 @@ the configured default sort order."
     (if no-display
        (set-buffer buffer)
       (pop-to-buffer-same-window buffer))
-    ;; 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))
+    (notmuch-search-mode)
     ;; Don't track undo information for this buffer
     (set 'buffer-undo-list t)
     (set 'notmuch-search-query-string query)