[PATCH 0/3] Use invisibility to toggle display of all parts including multipart

Mark Walters markwalters1009 at gmail.com
Tue Dec 4 15:27:39 PST 2012


This patch aims to do the same as
id:1354496317-24564-1-git-send-email-markwalters1009 at gmail.com but
rather than reloading the buffer it uses invisibility. 

Most of the invisibility stuff was taken from notmuch-wash and adapted
to this situation.

The general interface is that any part can have its visibility
toggled: in this version by "t" on the part button. In addition "RET"
on the part button of any "not shown" part will show it.

Whilst a main driver was being able to view different parts of a
multipart/alternative message, this also allows the user to toggle
images or large inline text attachments (eg text/x-tex) for
example. Indeed, even multipart part buttons can be toggled which
remove the whole tree beneath: it is unclear whether this last is useful.

The invisibility approach has some advantages over the reloading
approach. It does not disrupt the rest of the buffer (eg
collapsed/expanded citations remain), it does not require an extra
call to the database with the possible addition of messages to the
buffer, and it fits more naturally with the other hidden/not-hidden
items.

Best wishes

Mark


Mark Walters (3):
  emacs: show: modify insert-part-header to save the button text
  emacs: show: add overlays for each part
  emacs: show: add invisibility button action

 emacs/notmuch-show.el |  117 +++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 93 insertions(+), 24 deletions(-)

-- 
1.7.9.1



More information about the notmuch mailing list