--- /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 ECCED431FB6\r
+ for <notmuch@notmuchmail.org>; Wed, 5 Dec 2012 01:41:25 -0800 (PST)\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 uL1ACpaykkKq for <notmuch@notmuchmail.org>;\r
+ Wed, 5 Dec 2012 01:41:25 -0800 (PST)\r
+Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com\r
+ [209.85.212.175]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 6249C431FAE\r
+ for <notmuch@notmuchmail.org>; Wed, 5 Dec 2012 01:41:25 -0800 (PST)\r
+Received: by mail-wi0-f175.google.com with SMTP id hm11so1355659wib.2\r
+ for <notmuch@notmuchmail.org>; Wed, 05 Dec 2012 01:41:24 -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:in-reply-to:references;\r
+ bh=PKvCYjag89RxiAXAkKp8mCrdOdYG8Wa4Nn+9GMYutM4=;\r
+ b=AGtHjuLNlmWwUJy3fg2437qUMVfdST9mDDlYfQWeKvVOJHtPp3cwRZGzZ25xkc8reT\r
+ w1e4rbCPXQjJJ5BYh8GaNfpoG5fLFV5aludk+bVeKImkNGtvWhzg64P4AfVz87gt76/q\r
+ 1mMAEyX5KFM6WnjSng7fEmeSCTOYXEmIbqEVvNFIwd2Gd3Y29wE9ssd/Lf8Gf/2NxYvP\r
+ mOBh2ukXB9+RxNIxuqEzcIZ1MOTkesW3sYL+F+hl+NRakBtkPiCPH6vsutGAjTbDFv8e\r
+ wha7HhjKxaenb6bWxqKFuzV/Ioo/gS/3Ju+dBZiuZHqdyNvJiVn1dBkEaEuE19h90gbj\r
+ 9lEA==\r
+Received: by 10.180.106.34 with SMTP id gr2mr1993203wib.18.1354700484282;\r
+ Wed, 05 Dec 2012 01:41:24 -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 w5sm5611252wiz.10.2012.12.05.01.41.22\r
+ (version=TLSv1/SSLv3 cipher=OTHER);\r
+ Wed, 05 Dec 2012 01:41:23 -0800 (PST)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] emacs: show: make RET always toggle parts where plausible\r
+Date: Wed, 5 Dec 2012 09:41:20 +0000\r
+Message-Id: <1354700480-5170-1-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <1354663662-20524-4-git-send-email-markwalters1009@gmail.com>\r
+References: <1354663662-20524-4-git-send-email-markwalters1009@gmail.com>\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, 05 Dec 2012 09:41:26 -0000\r
+\r
+This makes RET toggle the visibility of any part which has a component\r
+that can be displayed in the buffer. This included text parts (plain/\r
+html/ x-tex etc) and images. Parts which cannot be displayed (eg pdf)\r
+RET acts as before and saves/views etc.\r
+\r
+Definite actions can always be accessed with s,v and o (eg v to view a\r
+text/html part in a browser).\r
+\r
+---\r
+\r
+This is a slight tweak at Jani's suggestion on irc. Applies on top of\r
+the previous series.\r
+\r
+\r
+\r
+ emacs/notmuch-show.el | 2 +-\r
+ 1 files changed, 1 insertions(+), 1 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index a4daff8..e319e5c 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -2028,7 +2028,7 @@ the user (see `notmuch-show-stash-mlarchive-link-alist')."\r
+ (defun notmuch-show-part-button-default (&optional button)\r
+ (interactive)\r
+ (let ((button (or button (button-at (point)))))\r
+- (if (invisible-p (button-get button 'invisibility-spec))\r
++ (if (button-get button 'invisibility-spec)\r
+ (notmuch-show-toggle-invisible-part-action button)\r
+ (notmuch-show-part-button-internal button notmuch-show-part-button-default-action))))\r
+ \r
+-- \r
+1.7.9.1\r
+\r