From 31fc68f6b1adbd342d2a64da4f29561c4c344a62 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Thu, 1 Mar 2012 15:34:05 +0200 Subject: [PATCH] [PATCH 1/2] emacs: retain show buffer state after retrieving gpg key --- 5f/f11e356da08f9b8b58cf78e880776df56a9366 | 67 +++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 5f/f11e356da08f9b8b58cf78e880776df56a9366 diff --git a/5f/f11e356da08f9b8b58cf78e880776df56a9366 b/5f/f11e356da08f9b8b58cf78e880776df56a9366 new file mode 100644 index 000000000..19abf8acc --- /dev/null +++ b/5f/f11e356da08f9b8b58cf78e880776df56a9366 @@ -0,0 +1,67 @@ +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 25F1B431E84 + for ; Thu, 1 Mar 2012 05:34:11 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 uUoB05qI2IUV for ; + Thu, 1 Mar 2012 05:34:09 -0800 (PST) +Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66]) + by olra.theworths.org (Postfix) with ESMTP id 4A61B431E82 + for ; Thu, 1 Mar 2012 05:34:09 -0800 (PST) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id 0DB7268055; Thu, 1 Mar 2012 15:34:08 +0200 (EET) +From: Tomi Ollila +To: notmuch@notmuchmail.org +Subject: [PATCH 1/2] emacs: retain show buffer state after retrieving gpg key +Date: Thu, 1 Mar 2012 15:34:05 +0200 +Message-Id: <1330608846-25183-1-git-send-email-tomi.ollila@iki.fi> +X-Mailer: git-send-email 1.7.6.1 +Cc: Tomi Ollila +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: Thu, 01 Mar 2012 13:34:11 -0000 + +After retrieving gpg key retain show buffer state like in +all other operations (i.e. no other calls to notmuch-show-refresh-view +provides optional reset-state argument). +Emacs MUA keeps current message under cursor instead of going first +open message(possibly marking it read). +--- + emacs/notmuch-crypto.el | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/emacs/notmuch-crypto.el b/emacs/notmuch-crypto.el +index 94da325..e916d66 100644 +--- a/emacs/notmuch-crypto.el ++++ b/emacs/notmuch-crypto.el +@@ -145,7 +145,7 @@ mode." + (insert "\n") + (call-process "gpg" nil t t "--list-keys" keyid)) + (recenter -1)) +- (notmuch-show-refresh-view t))) ++ (notmuch-show-refresh-view))) + + (defun notmuch-crypto-insert-encstatus-button (encstatus) + (let* ((status (plist-get encstatus :status)) +-- +1.7.8.2 + -- 2.26.2