[PATCH v2 0/3] Allow emacs to toggle display of all parts including multipart
authorMark Walters <markwalters1009@gmail.com>
Mon, 3 Dec 2012 00:58:34 +0000 (00:58 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:51:21 +0000 (09:51 -0800)
f7/71cd346346494a5daf0b63220988300cb1561d [new file with mode: 0644]

diff --git a/f7/71cd346346494a5daf0b63220988300cb1561d b/f7/71cd346346494a5daf0b63220988300cb1561d
new file mode 100644 (file)
index 0000000..03eb304
--- /dev/null
@@ -0,0 +1,101 @@
+Return-Path: <markwalters1009@gmail.com>\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 7A32C431FB6\r
+       for <notmuch@notmuchmail.org>; Sun,  2 Dec 2012 16:58:49 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 2.7\r
+X-Spam-Level: **\r
+X-Spam-Status: No, score=2.7 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+       FREEMAIL_REPLY=2.499, 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 BC5JiE3dG7ev for <notmuch@notmuchmail.org>;\r
+       Sun,  2 Dec 2012 16:58:48 -0800 (PST)\r
+Received: from mail-wg0-f41.google.com (mail-wg0-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
+ AADDB431FAE   for <notmuch@notmuchmail.org>; Sun,  2 Dec 2012 16:58:48 -0800\r
+ (PST)\r
+Received: by mail-wg0-f41.google.com with SMTP id ds1so737127wgb.2\r
+       for <notmuch@notmuchmail.org>; Sun, 02 Dec 2012 16:58:47 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id:x-mailer;\r
+       bh=t+ecVFlvFEAvcGOxZyvCGOiXQ0SdFUPAjlAiSAhq6cg=;\r
+       b=EypN/O83BUAXSsULRpNJrBzwuXAYQQtcOl426CwmA66x+x7BfjtyNBBvnq7lBUCu2U\r
+       5hQjBnDM//MiQxBVqdivEapSZKBqrC0pb7KmqqAiLenoNjoPQ0Wo8IF0FZhgF0EiOiHw\r
+       bPJerxYJ7YaDG8h1XA+3vy/vXosFpI9OvjGg4sA3pkitc6KceyoomvMEJX0aHlGTW/46\r
+       qIS9OX++CcdFW2lQW9YYlHZD278VRBi+GNfoL0V9r2EuJX9MV81996Nil95mYSLZa6ND\r
+       PHvwiGXi67AKWvvmpKdzwd6hpQ2o7y3Fk7/dPAeCnVXlKKvPDnBkSUJFicY1clJEwK8Q\r
+       ZLlg==\r
+Received: by 10.180.87.39 with SMTP id u7mr6906382wiz.6.1354496326080;\r
+       Sun, 02 Dec 2012 16:58:46 -0800 (PST)\r
+Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
+       by mx.google.com with ESMTPS id i6sm9020485wix.5.2012.12.02.16.58.44\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Sun, 02 Dec 2012 16:58:44 -0800 (PST)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 0/3] Allow emacs to toggle display of all parts including\r
+       multipart\r
+Date: Mon,  3 Dec 2012 00:58:34 +0000\r
+Message-Id: <1354496317-24564-1-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\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: Mon, 03 Dec 2012 00:58:49 -0000\r
+\r
+This is rather more polished version of\r
+id:1351152563-27277-1-git-send-email-markwalters1009@gmail.com.\r
+\r
+The first patch modifies the behaviour of show refresh buffer to keep\r
+state more accurately where possible. It can never be perfect but it\r
+makes a reasonable attempt. This is independent of patches 2 and 3.\r
+\r
+The second patch allows the user to toggle the visibility of any part\r
+with 't' on the part button. It does this by storing a list of all\r
+parts that the user has over-ruled.\r
+\r
+The final patch binds the toggle to the default action in cases where\r
+the part has no filename. Is this a reasonable heuristic? And should\r
+it be customisable? In all cases the defined actions (save, view,\r
+other, and toggle) always do their action (ie they do not apply any\r
+heuristics)\r
+\r
+Overall I am pleased with the way it works. The one caveat is that it\r
+does redisplay the whole buffer when toggling the parts: it might be\r
+nice to use invisibility but that is beyond my lisp. Moreover it could\r
+be added at a later stage without changing the user experience.\r
+\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+\r
+Mark Walters (3):\r
+  emacs: show: make refresh fix point(ish)\r
+  emacs: allow the user to toggle the visibility of\r
+    multipart/alternative parts\r
+  emacs: show make default part button toggle view when sensible\r
+\r
+ emacs/notmuch-show.el |   80 ++++++++++++++++++++++++++++++++++++++----------\r
+ 1 files changed, 63 insertions(+), 17 deletions(-)\r
+\r
+-- \r
+1.7.9.1\r
+\r