]> git.notmuchmail.org Git - notmuch/commit
emacs: notmuch-search-refresh-view: reuse buffer
authorIoan-Adrian Ratiu <adi@adirat.com>
Sat, 15 Oct 2016 07:32:43 +0000 (08:32 +0100)
committerDavid Bremner <david@tethera.net>
Mon, 17 Oct 2016 12:05:05 +0000 (09:05 -0300)
commitfae3d361f282ce52430a28d73a40d024783e08d2
treefddfaef1985a44111db28f84cda00e576e1a4004
parente37a64da7a0bd047d97aa9a13291969369eedf6b
emacs: notmuch-search-refresh-view: reuse buffer

There's no reason to completely kill a buffer while refreshing its
search results because the buffer name is constant between refreshes
(based on the search query), only its contents may change and notmuch
search kills all local variables, so it's safe to reuse.

Reusing the same buffer also makes it possible to do things like
refreshing a buffer which is not focused or even not shown in any
window - this will be used in the next commits to add auto-refresh
capabilities to all existing notmuch buffers + a function to call
after syncing mail to refresh everything.

Signed-off-by: Ioan-Adrian Ratiu <adi@adirat.com>
emacs/notmuch.el