emacs: Refuse requests to refresh tree views while a refresh is running
authorVladimir Panteleev <git@thecybershadow.net>
Mon, 14 Aug 2017 07:08:36 +0000 (07:08 +0000)
committerDavid Bremner <david@tethera.net>
Wed, 6 Sep 2017 00:50:03 +0000 (21:50 -0300)
commit1348212cb051b846bbe98f6d653da45aad3dfefa
tree4a1b285ce5dcc105940d9f76ae6ec204e2cd28b1
parent0260ee371ea561d3e6876ab800e934ddeacb3482
emacs: Refuse requests to refresh tree views while a refresh is running

notmuch-tree did not protect against concurrent refreshes like
notmuch-search, meaning, hitting '=' (notmuch-refresh-this-buffer)
quickly will spawn multiple parallel notmuch processes, and clobber
the existing results in the current buffer.

* notmuch-tree.el: Add a guard to notmuch-tree-refresh-view similar to
  the one in notmuch-search.
emacs/notmuch-tree.el