[PATCH 0/3] reworked crypto toggle, plus a couple of other toggles
authorDavid Edmondson <dme@dme.org>
Wed, 25 Jan 2012 10:18:46 +0000 (10:18 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:43:12 +0000 (09:43 -0800)
0d/03231c0d04b3b25c16bbdbf1f81f09e3d9c4de [new file with mode: 0644]

diff --git a/0d/03231c0d04b3b25c16bbdbf1f81f09e3d9c4de b/0d/03231c0d04b3b25c16bbdbf1f81f09e3d9c4de
new file mode 100644 (file)
index 0000000..a270a6c
--- /dev/null
@@ -0,0 +1,95 @@
+Return-Path: <dme@dme.org>\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 902AB429E2F\r
+       for <notmuch@notmuchmail.org>; Wed, 25 Jan 2012 02:19:00 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 I-60n+f8mlGI for <notmuch@notmuchmail.org>;\r
+       Wed, 25 Jan 2012 02:19:00 -0800 (PST)\r
+Received: from mail-ww0-f41.google.com (mail-ww0-f41.google.com\r
+ [74.125.82.41])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ 9D6B8431FD5   for <notmuch@notmuchmail.org>; Wed, 25 Jan 2012 02:18:59 -0800\r
+ (PST)\r
+Received: by wgbdt11 with SMTP id dt11so1242578wgb.2\r
+       for <notmuch@notmuchmail.org>; Wed, 25 Jan 2012 02:18:58 -0800 (PST)\r
+MIME-Version: 1.0\r
+Received: by 10.180.86.9 with SMTP id l9mr18142417wiz.15.1327486738339;\r
+       Wed, 25 Jan 2012 02:18:58 -0800 (PST)\r
+Received: from hotblack-desiato.hh.sledj.net\r
+       (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])\r
+       by mx.google.com with ESMTPS id di5sm62063627wib.3.2012.01.25.02.18.56\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Wed, 25 Jan 2012 02:18:57 -0800 (PST)\r
+Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)\r
+       id B75CE9FCDA; Wed, 25 Jan 2012 10:18:55 +0000 (GMT)\r
+From: David Edmondson <dme@dme.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/3] reworked crypto toggle, plus a couple of other toggles\r
+Date: Wed, 25 Jan 2012 10:18:46 +0000\r
+Message-Id: <1327486729-18052-1-git-send-email-dme@dme.org>\r
+X-Mailer: git-send-email 1.7.8.3\r
+X-Gm-Message-State:\r
+ ALoCoQm39qenohCG9T35n+B1EHVXqkbdbHutoAeV9D0SET9dvy5OCAJEhHRwYKIoW05MCtpLuq93\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: Wed, 25 Jan 2012 10:19:00 -0000\r
+\r
+The crypto toggle previously worked using an argument to\r
+`notmuch-show' and various other functions and relied on killing and\r
+re-creating the notmuch-show-mode buffer. Various other\r
+pseudo-buffer-local variables were present based on an ad-hoc scheme.\r
+\r
+Replace the ad-hoc scheme with real buffer-local variables and then\r
+update `notmuch-show-refresh-view' to erase and re-paint rather than\r
+kill and re-create. Update the crypto switch accordingly.\r
+\r
+Add two other toggles:\r
+    - whether non-matching messages are available,\r
+    - the indentation of message contents.\r
+Both of these default to the current behaviour.\r
+\r
+A wart in the first patch is the handling of the\r
+`notmuch-show-process-crypto' default. It is set based on\r
+`notmuch-crypto-process-mime', but the users choice of setting for\r
+that variable may not have been applied at the point where\r
+`notmuch-show-process-crypto' inherits it.\r
+\r
+My inclination is to remove `notmuch-crypto-process-mime' altogether\r
+(declared it an obsolete variable) and allow users to set a default\r
+for `notmuch-show-process-crypto' directly, but that is not done in\r
+this patchset while awaiting feedback.\r
+\r
+`notmuch-crypto-process-mime' is used only in notmuch-show.el, so the\r
+setting really belongs there with an appropriate name.\r
+\r
+David Edmondson (3):\r
+  emacs: Rework crypto switch toggle.\r
+  emacs: Allow `notmuch-show-mode' to display only matching messages.\r
+  emacs: Allow the indentation of content to be toggled.\r
+\r
+ emacs/notmuch-show.el |  143 +++++++++++++++++++++++++++++--------------------\r
+ emacs/notmuch.el      |    7 +--\r
+ 2 files changed, 87 insertions(+), 63 deletions(-)\r
+\r
+-- \r
+1.7.8.3\r
+\r