X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch.el;h=193a1255dda2c0ce040f519170d6b9356dcd58e9;hb=88ae4f02511c4dd61ea90b28794f469819d543be;hp=8132cea66b618355f4eedd6313bdce25aa27ee9b;hpb=d7732b2b6aa0a62262061b3b330221d2fdf772e0;p=notmuch diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 8132cea6..193a1255 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -994,7 +994,7 @@ the configured default sort order." (buffer (get-buffer-create (notmuch-search-buffer-title query)))) (if no-display (set-buffer buffer) - (switch-to-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 @@ -1134,7 +1134,7 @@ notmuch buffers exist, run `notmuch'." ;; If the first one we found is any other than the starting ;; buffer, switch to it. (unless (eq first start) - (switch-to-buffer first)) + (pop-to-buffer-same-window first)) (notmuch)))) ;;;; Imenu Support