[PATCH 1/2] emacs: retain show buffer state after retrieving gpg key
authorTomi Ollila <tomi.ollila@iki.fi>
Thu, 1 Mar 2012 13:34:05 +0000 (15:34 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:06 +0000 (09:45 -0800)
5f/f11e356da08f9b8b58cf78e880776df56a9366 [new file with mode: 0644]

diff --git a/5f/f11e356da08f9b8b58cf78e880776df56a9366 b/5f/f11e356da08f9b8b58cf78e880776df56a9366
new file mode 100644 (file)
index 0000000..19abf8a
--- /dev/null
@@ -0,0 +1,67 @@
+Return-Path: <too@guru.guru-group.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 25F1B431E84\r
+       for <notmuch@notmuchmail.org>; Thu,  1 Mar 2012 05:34:11 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id uUoB05qI2IUV for <notmuch@notmuchmail.org>;\r
+       Thu,  1 Mar 2012 05:34:09 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])\r
+       by olra.theworths.org (Postfix) with ESMTP id 4A61B431E82\r
+       for <notmuch@notmuchmail.org>; Thu,  1 Mar 2012 05:34:09 -0800 (PST)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+       id 0DB7268055; Thu,  1 Mar 2012 15:34:08 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/2] emacs: retain show buffer state after retrieving gpg key\r
+Date: Thu,  1 Mar 2012 15:34:05 +0200\r
+Message-Id: <1330608846-25183-1-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 1.7.6.1\r
+Cc: Tomi Ollila <tomi.ollila@iki.fi>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 01 Mar 2012 13:34:11 -0000\r
+\r
+After retrieving gpg key retain show buffer state like in\r
+all other operations (i.e. no other calls to notmuch-show-refresh-view\r
+provides optional reset-state argument).\r
+Emacs MUA keeps current message under cursor instead of going first\r
+open message(possibly marking it read).\r
+---\r
+ emacs/notmuch-crypto.el |    2 +-\r
+ 1 files changed, 1 insertions(+), 1 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-crypto.el b/emacs/notmuch-crypto.el\r
+index 94da325..e916d66 100644\r
+--- a/emacs/notmuch-crypto.el\r
++++ b/emacs/notmuch-crypto.el\r
+@@ -145,7 +145,7 @@ mode."\r
+       (insert "\n")\r
+       (call-process "gpg" nil t t "--list-keys" keyid))\r
+       (recenter -1))\r
+-    (notmuch-show-refresh-view t)))\r
++    (notmuch-show-refresh-view)))\r
+ \r
+ (defun notmuch-crypto-insert-encstatus-button (encstatus)\r
+   (let* ((status (plist-get encstatus :status))\r
+-- \r
+1.7.8.2\r
+\r