From 27a95ad2ec5565c39cafae720af3bd8872bd0f3e Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Tue, 7 Feb 2012 17:26:11 +0000 Subject: [PATCH] [PATCH] emacs: Ensure that gnupg output goes at the end of the buffer. --- 64/741f261bbd6d58c13dfdc222e376fc733735bd | 87 +++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 64/741f261bbd6d58c13dfdc222e376fc733735bd diff --git a/64/741f261bbd6d58c13dfdc222e376fc733735bd b/64/741f261bbd6d58c13dfdc222e376fc733735bd new file mode 100644 index 000000000..893f6b025 --- /dev/null +++ b/64/741f261bbd6d58c13dfdc222e376fc733735bd @@ -0,0 +1,87 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 0017A431FBF + for ; Tue, 7 Feb 2012 09:26:18 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id wv5TMkz1yeXT for ; + Tue, 7 Feb 2012 09:26:18 -0800 (PST) +Received: from mail-ww0-f41.google.com (mail-ww0-f41.google.com + [74.125.82.41]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client + certificate requested) by olra.theworths.org (Postfix) with ESMTPS id + 4BAEB431FAE for ; Tue, 7 Feb 2012 09:26:18 -0800 + (PST) +Received: by wgbdt11 with SMTP id dt11so4495275wgb.2 + for ; Tue, 07 Feb 2012 09:26:15 -0800 (PST) +MIME-Version: 1.0 +Received: by 10.216.138.130 with SMTP id a2mr5514072wej.42.1328635575590; + Tue, 07 Feb 2012 09:26:15 -0800 (PST) +Received: from hotblack-desiato.hh.sledj.net + (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25]) + by mx.google.com with ESMTPS id hb10sm5689817wib.10.2012.02.07.09.26.13 + (version=TLSv1/SSLv3 cipher=OTHER); + Tue, 07 Feb 2012 09:26:14 -0800 (PST) +Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) + id 31F7FA0F06; Tue, 7 Feb 2012 17:26:12 +0000 (GMT) +From: David Edmondson +To: notmuch@notmuchmail.org +Subject: [PATCH] emacs: Ensure that gnupg output goes at the end of the + buffer. +Date: Tue, 7 Feb 2012 17:26:11 +0000 +Message-Id: <1328635571-20622-1-git-send-email-dme@dme.org> +X-Mailer: git-send-email 1.7.8.3 +X-Gm-Message-State: + ALoCoQmuscVKaZ1SMin70XEnqmQ9k9iDV3kt3y4XTrwXFPD/caT5VXZcehNlPJPSjCmk2tcf0z6W +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 07 Feb 2012 17:26:19 -0000 + +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 + -- 2.26.2