]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-crypto.el
emacs: Ensure that gnupg output goes at the end of the buffer.
[notmuch] / emacs / notmuch-crypto.el
index 80ac350e6c19f4e871f063280d1c742e02bc0be2..c7ef1eba2916dd5d91e0777ca58c603a156304ee 100644 (file)
@@ -129,6 +129,7 @@ mode."
         (window (display-buffer buffer t nil)))
     (with-selected-window window
       (with-current-buffer buffer
+       (goto-char (point-max))
        (call-process "gpg" nil t t "--list-keys" fingerprint))
       (recenter -1))))
 
@@ -139,6 +140,7 @@ mode."
         (window (display-buffer buffer t nil)))
     (with-selected-window window
       (with-current-buffer buffer
+       (goto-char (point-max))
        (call-process "gpg" nil t t "--recv-keys" keyid)
        (insert "\n")
        (call-process "gpg" nil t t "--list-keys" keyid))