--- /dev/null
+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 73101431FAF\r
+ for <notmuch@notmuchmail.org>; Thu, 25 Oct 2012 01:09:34 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.201 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
+ 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 0PA+ElRUCxIA for <notmuch@notmuchmail.org>;\r
+ Thu, 25 Oct 2012 01:09:33 -0700 (PDT)\r
+Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com\r
+ [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client\r
+ certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
+ BCCDA431FAE for <notmuch@notmuchmail.org>; Thu, 25 Oct 2012 01:09:32 -0700\r
+ (PDT)\r
+Received: by mail-wg0-f45.google.com with SMTP id dq12so897880wgb.2\r
+ for <notmuch@notmuchmail.org>; Thu, 25 Oct 2012 01:09:31 -0700 (PDT)\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=ZYixgR4W10jC8IHyAlCbOfaK9RgaiEqDMIo2iKUNvwU=;\r
+ b=BqjaROysBurT13wrNtOLLBbhD7t/ApWfqCIOuWRhS90zQ8hZpeG24VW41ekVJuzhQc\r
+ 5Uf0cUWyYcoKkqv9H7Q5OUWYPHt0azTJiVjM4Xay6EtRLsOURXps5BajjVo4i1M7Hrc2\r
+ quP9hH0gOY5WaDQwuKQn5oFDWKPn7MINIqVSgSq41YJ36dh5fAJTaByFxzuw0Ddmz487\r
+ zHP/dOo//BBDvI7enwjHQ0+/na3FNG1A3auGUNB3gfdOKPQZpEfBrERSSOjyx7TEAgGx\r
+ QdeN1oZ84UqSVhU+aOXX8hFBv0LMe85rHaxhoA7jW5BPKS09J68HjXma75GfM/EXgZlF\r
+ f9GQ==\r
+Received: by 10.180.79.7 with SMTP id f7mr11827216wix.22.1351152571511;\r
+ Thu, 25 Oct 2012 01:09:31 -0700 (PDT)\r
+Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
+ by mx.google.com with ESMTPS id fp6sm8766801wib.0.2012.10.25.01.09.29\r
+ (version=TLSv1/SSLv3 cipher=OTHER);\r
+ Thu, 25 Oct 2012 01:09:30 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH (draft) 0/2] Allow emacs to toggle display of all parts\r
+ including multipart\r
+Date: Thu, 25 Oct 2012 09:09:21 +0100\r
+Message-Id: <1351152563-27277-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: Thu, 25 Oct 2012 08:09:34 -0000\r
+\r
+This patch series adds a function to toggle the display of any emacs\r
+part in the show buffer. This is particularly useful for\r
+multipart/alternative where the parts have different information.\r
+\r
+The first patch binds this toggle to 't' on the part button. This\r
+patch works by itself.\r
+\r
+The second patch makes it that "viewing" (ie v on the part-button) a\r
+"not shown" part displays the part in the buffer. Note this is not a\r
+toggle since having displayed the part in the buffer the user may wish\r
+to view the part externally (eg if it is a text/html part).\r
+\r
+Caveats: \r
+ the patches work by reloading the whole buffer: this may mean\r
+ extra messages appear in the thread. This is not ideal but is\r
+ the same as toggling indentation etc.\r
+\r
+ the reload saves state as normal but this means the view\r
+ returns to the top of the current message. Since we know\r
+ exactly where the user was (ie on the button) this should be\r
+ restored.\r
+\r
+ for technical reasons the "view" part functionality in the\r
+ second patch only works for view called explicitly: not if\r
+ the user has customised the default action to be view and\r
+ calls that. This is easy to fix but the most natural way\r
+ would break existing customisation of this action.\r
+\r
+ reloading the buffer without keeping state does not currently\r
+ reset the toggled parts. Again this is easy to fix but lets\r
+ see if people like the general approach first.\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+\r
+Mark Walters (2):\r
+ emacs: allow the user to toggle the visibility of\r
+ multipart/alternative parts\r
+ emacs: show: make "view part" show hidden parts\r
+\r
+ emacs/notmuch-show.el | 53 ++++++++++++++++++++++++++++++++++++++++--------\r
+ 1 files changed, 44 insertions(+), 9 deletions(-)\r
+\r
+-- \r
+1.7.9.1\r
+\r