X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch.el;h=132e7724d3fabe61f50f3338bd0e7f8111441d54;hb=0251cab3ab5021bd085fcbd8602c2f45ee4cdee3;hp=3ca27b26f866d298a125c0eff376a23f8092d757;hpb=d6cacef832e65dd9b8fccc79162cb525b13ab748;p=notmuch diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 3ca27b26..132e7724 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -391,7 +391,7 @@ Complete list of currently available key bindings: (make-local-variable 'notmuch-search-target-thread) (make-local-variable 'notmuch-search-target-line) (setq notmuch-buffer-refresh-function #'notmuch-search-refresh-view) - (set (make-local-variable 'scroll-preserve-screen-position) t) + (setq-local scroll-preserve-screen-position t) (add-to-invisibility-spec (cons 'ellipsis t)) (setq truncate-lines t) (setq buffer-read-only t) @@ -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)