Re: [PATCH] emacs: add function to toggle display of all multipart/alternative parts
authorJameson Graef Rollins <jrollins@finestructure.net>
Mon, 18 Jun 2012 21:26:04 +0000 (14:26 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:47:42 +0000 (09:47 -0800)
c3/462e6befc616eb3a7c506b5422b3667f771869 [new file with mode: 0644]

diff --git a/c3/462e6befc616eb3a7c506b5422b3667f771869 b/c3/462e6befc616eb3a7c506b5422b3667f771869
new file mode 100644 (file)
index 0000000..102e63d
--- /dev/null
@@ -0,0 +1,106 @@
+Return-Path: <jrollins@finestructure.net>\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 9E00F431FB6\r
+       for <notmuch@notmuchmail.org>; Mon, 18 Jun 2012 14:26:15 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 GoEYlkrt+LYw for <notmuch@notmuchmail.org>;\r
+       Mon, 18 Jun 2012 14:26:13 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id 3342A431FAF\r
+       for <notmuch@notmuchmail.org>; Mon, 18 Jun 2012 14:26:12 -0700 (PDT)\r
+Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by fire-doxen-postvirus (Postfix) with ESMTP id 3B9C12E50D4C;\r
+       Mon, 18 Jun 2012 14:26:10 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
+Received: from finestructure.net (gwave-92.ligo.caltech.edu [131.215.114.92])\r
+       (Authenticated sender: jrollins)\r
+       by fire-doxen-submit (Postfix) with ESMTP id 6DDA62E50A1D;\r
+       Mon, 18 Jun 2012 14:26:07 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 4CDD739B; Mon, 18 Jun 2012 14:26:07 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] emacs: add function to toggle display of all\r
+       multipart/alternative parts\r
+In-Reply-To: <1339775751-18002-1-git-send-email-jani@nikula.org>\r
+References: <1339775751-18002-1-git-send-email-jani@nikula.org>\r
+User-Agent: Notmuch/0.13.2+53~g1567997 (http://notmuchmail.org) Emacs/23.4.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Mon, 18 Jun 2012 14:26:04 -0700\r
+Message-ID: <87zk80gvmb.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\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, 18 Jun 2012 21:26:15 -0000\r
+\r
+--=-=-=\r
+\r
+On Fri, Jun 15 2012, Jani Nikula <jani@nikula.org> wrote:\r
+> Add function notmuch-show-toggle-multipart-alternative to make\r
+> notmuch-show-all-multipart/alternative-parts buffer local, toggle its\r
+> value in the buffer, and redisplay the thread with either all or\r
+> preferred alternative parts expanded.\r
+>\r
+> A small wrinkle is that in order to make the variable survive\r
+> notmuch-show-refresh-view (which is required for expanding/collapsing\r
+> the parts, but ends up calling kill-all-local-variables through\r
+> notmuch-show-mode) it is necessary to give it the permanent-local\r
+> property.\r
+\r
+This is a very cool feature.  I haven't looked closely at this but can't\r
+this mechanism work the same as the other show-mode toggles, like crypto\r
+or indenting?  I wouldn't think it would require any more extra variable\r
+stuff than what is used for those other toggles.\r
+\r
+Also, the *really* sweet thing would be if the toggle actually cycled\r
+through display of the alternatives, only displaying one at a time.\r
+That would be very swank.\r
+\r
+David Edmondson put together the other show-mode toggling stuff, so he\r
+may be able to help with this as well.\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.12 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJP35ztAAoJEO00zqvie6q8mz8P/j0tQV1ndALg5lGQeH25Pt4K\r
+6c68xpRliGATxPI5JqIY+pldLw+Vb6qo8qywJt6LTxX0lkS2NH0KFJoKSX25EXoM\r
++63xWIphum+wlhIBxbR13q9BInBu5EJ6XIw3oX4x1x+BHz2IbTw6P71EgRxthaEZ\r
+tUaLHv4Q0gFMe3+cuBLirBnUI5zuouIiZzX8HVcHRczkzQJbXSCOnrlmykKnsXKm\r
+MfRqIW1vkw3wkLzazFlvnrvdnoKqM4hMP3YVtnkjbgQiAlpjz4joGgg7lDzAuW6l\r
+2atHntdbf05jnnvycR3htsS5lnhbWxWupzvCNa0wYW82f3lCR4fj2HBdYjMf9vha\r
+D3sTPEUfokDgdTGMg+Ztuyx2bcI47ljF8GAPb0JazyxnFcI9pILDS41F+zTXzN0i\r
+0a3vS64JzAx7hDuI7+uj6ohKnpIcFbubjTfSm8B0JV1SvGvJqyySsz4U5WSnO98U\r
+yl9L6NiBRD+TO7FRGqgChl/FsfE7B3ccwSGv+D4UtxLD+Ntwifut5oLPYJHbKu6k\r
+E5W13qbJnMjs70+8BXKdv9bWyI7zK14cWQ+FrAytHQfhJMxfShE+aoizdrT2M6+D\r
+ypKpLXnrFrorbUiONWNdlY+Sw6aWSdduQN8LSS6T5zk02ENORy1cEl5JaxNuk2w2\r
+KLgqpDW9H7mChk06T4i9\r
+=LO+C\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r