]> git.notmuchmail.org Git - notmuch/commit - emacs/notmuch.el
emacs: run notmuch-search-hook lazily
authorDavid Bremner <david@tethera.net>
Mon, 13 Sep 2021 01:03:50 +0000 (22:03 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 4 Dec 2021 16:11:52 +0000 (12:11 -0400)
commiteafb033d3220f1388f434dc29618924659fc2d33
tree6de5d2f6f87d0d1683a16749197384bcdf2a75d1
parent1e7d33961e626488b09b56c8543e8edf00648670
emacs: run notmuch-search-hook lazily

In message id:YT3ueuZHKW931NW3@localhost, Fabio Natali isolated a
visual glitch caused by running notmuch-search-hook too early. This
change moves the running of that hook to
notmuch-search-process-filter, which ensures there is some output in
the buffer before running the hook. Since n-s-p-f can be called many
times for a given buffer, add a buffer local flag to make sure it is
only run once per buffer.
emacs/notmuch.el