[PATCH v2 0/3] Allow emacs to toggle display of all parts including multipart

Mark Walters markwalters1009 at gmail.com
Sun Dec 2 16:58:34 PST 2012


This is rather more polished version of
id:1351152563-27277-1-git-send-email-markwalters1009 at gmail.com.

The first patch modifies the behaviour of show refresh buffer to keep
state more accurately where possible. It can never be perfect but it
makes a reasonable attempt. This is independent of patches 2 and 3.

The second patch allows the user to toggle the visibility of any part
with 't' on the part button. It does this by storing a list of all
parts that the user has over-ruled.

The final patch binds the toggle to the default action in cases where
the part has no filename. Is this a reasonable heuristic? And should
it be customisable? In all cases the defined actions (save, view,
other, and toggle) always do their action (ie they do not apply any
heuristics)

Overall I am pleased with the way it works. The one caveat is that it
does redisplay the whole buffer when toggling the parts: it might be
nice to use invisibility but that is beyond my lisp. Moreover it could
be added at a later stage without changing the user experience.


Best wishes

Mark


Mark Walters (3):
  emacs: show: make refresh fix point(ish)
  emacs: allow the user to toggle the visibility of
    multipart/alternative parts
  emacs: show make default part button toggle view when sensible

 emacs/notmuch-show.el |   80 ++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 63 insertions(+), 17 deletions(-)

-- 
1.7.9.1



More information about the notmuch mailing list