X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-crypto.el;h=928de0bbd926b31f94604c9146a0eb3cdd9d2018;hb=c6f43306ccb35a5e885b186fbf87394d2f036813;hp=f4585d5e927bafaa50b5957be6c10bb35c1811e8;hpb=a7884929d51790ed2782b04ba5b5e466d7148a63;p=notmuch diff --git a/emacs/notmuch-crypto.el b/emacs/notmuch-crypto.el index f4585d5e..928de0bb 100644 --- a/emacs/notmuch-crypto.el +++ b/emacs/notmuch-crypto.el @@ -163,6 +163,7 @@ by user FROM." (recenter -1)))) (declare-function notmuch-show-refresh-view "notmuch-show" (&optional reset-state)) +(declare-function notmuch-show-get-message-id "notmuch-show" (&optional bare)) (defun notmuch-crypto--async-key-sentinel (process event) "When the user asks for a GPG key to be retrieved @@ -222,16 +223,11 @@ corresponding key when the status button is pressed." :buffer buffer :stderr buffer :command (list notmuch-crypto-gpg-program "--recv-keys" keyid) - :sentinel #'notmuch-crypto--async-key-sentinel - ;; Create the process stopped so that - ;; we have time to store the key id, - ;; etc. on it. - :stop t))) + :sentinel #'notmuch-crypto--async-key-sentinel))) (process-put p :gpg-key-id keyid) (process-put p :notmuch-show-buffer (current-buffer)) (process-put p :notmuch-show-point (point)) - (message "Getting the GPG key %s asynchronously..." keyid) - (continue-process p))) + (message "Getting the GPG key %s asynchronously..." keyid))) (let ((window (display-buffer buffer))) (with-selected-window window