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