autocrypt.el: Fix flickering in mu4e v1 PROPOSED

Sandra Snan: 1
 Fix flickering in mu4e

 1 files changed, 6 insertions(+), 4 deletions(-)
Uh, never mind, it should work just fine. But some mu4e user 
should test it. I've made a new notmuch version, testing it out 
before sending it.
It'll be in an new thread, not the one from two years ago. It's just a
different implementation all together.
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~pkal/public-inbox/patches/47610/mbox | git am -3
Learn more about email & git

[PATCH autocrypt.el] Fix flickering in mu4e Export this patch

As we talked about on irc://libera.chat/emacs I'm gonna try to pick
this work back up two years later. I've got the FSF papers signed so
that this can go into ELPA.♥
(It took a year to get it from then and then it took me a year to get
back into the mood for working on this kinds of stuff.)

(I'm also more used to working with git and sourcehut, I guess I was
kinda confused back then.)

This first patch is unrelated to what I'm gonna work later and you can
accept it or reject it, either way is fine by me, since I don't use
mu4e and the patches don't conflict. It came about because I fixed
similar flickering in the notmuch version.
 autocrypt-mu4e.el | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/autocrypt-mu4e.el b/autocrypt-mu4e.el
index 10c6a0b..e5119ac 100644
--- a/autocrypt-mu4e.el
+++ b/autocrypt-mu4e.el
@@ -48,10 +48,12 @@

(defun autocrypt-mu4e--get-header (header)
  "Ask mu4e to return HEADER."
    (with-current-buffer (mu4e-view-raw-message)
      (prog1 (mail-fetch-field header)
        (kill-buffer (current-buffer))))))
  (let ((path (mu4e-message-field-at-point :path)))
    (unless (and path (file-readable-p path))
      (mu4e-error "Not a readable file: %S" path))
      (insert-file-contents path)
      (mail-fetch-field header))))

(provide 'autocrypt-mu4e)

Ah! This doesn't work since the hooks are buffer-local in the mu4e
Sandra Snan <sandra.snan@idiomdrottning.org> writes: