Changes since v2 (based on Mark & Tomi's feedback) * fixed a missing parameter in the get-buffer-window-list call in notmuch-show-capture-state * added a (remove-overlays) call before (erase-buffer) in notmuch-search-refresh-view * replaced the (string-prefix-p "notmuch") in notmuch-refresh-all-buffers with explicit list * reworded the commit messages to replace the word patches with commits What I intentionally did not touch in v3 is the notmuch-show call to generate-new-buffer-name which creates now buffers when opening threads from notmuch-search; that fix should go in another patch series. Ioan-Adrian Ratiu (4): emacs: reuse buffer when refreshing searches emacs: notmuch-show: refresh all windows showing a buffer emacs: add refresh buffer optional no-display arg emacs: notmuch-lib: add refresh all buffers function emacs/notmuch-lib.el | 25 ++++++++++++++++++++++--- emacs/notmuch-show.el | 19 +++++++++++++------ emacs/notmuch.el | 25 +++++++++++++++++-------- 3 files changed, 52 insertions(+), 17 deletions(-) -- 2.10.0