[PATCH] emacs: Ensure that gnupg output goes at the end of the buffer.

classic Classic list List threaded Threaded
2 messages Options
David Edmondson David Edmondson
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[PATCH] emacs: Ensure that gnupg output goes at the end of the buffer.

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 |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/emacs/notmuch-crypto.el b/emacs/notmuch-crypto.el
index 80ac350..c7ef1eb 100644
--- a/emacs/notmuch-crypto.el
+++ b/emacs/notmuch-crypto.el
@@ -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))
--
1.7.8.3

_______________________________________________
notmuch mailing list
[hidden email]
http://notmuchmail.org/mailman/listinfo/notmuch
David Bremner-2 David Bremner-2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [PATCH] emacs: Ensure that gnupg output goes at the end of the buffer.

On Tue,  7 Feb 2012 17:26:11 +0000, David Edmondson <[hidden email]> wrote:
> 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.

pushed,

d
_______________________________________________
notmuch mailing list
[hidden email]
http://notmuchmail.org/mailman/listinfo/notmuch
Loading...