]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Ensure that gnupg output goes at the end of the buffer.
authorDavid Edmondson <dme@dme.org>
Tue, 7 Feb 2012 17:26:11 +0000 (17:26 +0000)
committerDavid Bremner <bremner@debian.org>
Sun, 12 Feb 2012 16:58:20 +0000 (11:58 -0500)
When showing the user some details of gnupg output, ensure that those
details are shown at the end of the gnupg status buffer
("*notmuch-crypto-gpg-out*"), otherwise it can end up mixed up with
earlier output.

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))