X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch.el;h=079a3d1fdd1e9b7053d053f40b04e6607c4f335c;hb=2f643ac763e4e2f2b1951f0f1197af951c8b2575;hp=8f0053c1b443362abeb09997b70a2caa484d04f1;hpb=e37a64da7a0bd047d97aa9a13291969369eedf6b;p=notmuch diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 8f0053c1..079a3d1f 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -991,7 +991,7 @@ the configured default sort order." (defun notmuch-search-refresh-view () "Refresh the current view. -Kills the current buffer and runs a new search with the same +Erases the current buffer and runs a new search with the same query string as the current search. If the current thread is in the new search results, then point will be placed on the same thread. Otherwise, point will be moved to attempt to be in the @@ -1001,8 +1001,8 @@ same relative position within the new buffer." (oldest-first notmuch-search-oldest-first) (target-thread (notmuch-search-find-thread-id 'bare)) (query notmuch-search-query-string)) - (notmuch-bury-or-kill-this-buffer) - (notmuch-search query oldest-first target-thread target-line) + ;; notmuch-search erases the current buffer. + (notmuch-search query oldest-first target-thread target-line t) (goto-char (point-min)))) (defun notmuch-search-toggle-order ()