[PATCH] emacs: add function to toggle display of all multipart/alternative parts

Jameson Graef Rollins jrollins at finestructure.net
Mon Jun 18 14:26:04 PDT 2012


On Fri, Jun 15 2012, Jani Nikula <jani at nikula.org> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120618/bb08f995/attachment.pgp>


More information about the notmuch mailing list