]> git.notmuchmail.org Git - notmuch/commitdiff
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)
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>

No differences found