unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH v2 0/3] Allow emacs to toggle display of all parts including multipart
@ 2012-12-03  0:58 Mark Walters
  2012-12-03  0:58 ` [PATCH v2 1/3] emacs: show: make refresh fix point(ish) Mark Walters
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Mark Walters @ 2012-12-03  0:58 UTC (permalink / raw)
  To: notmuch

This is rather more polished version of
id:1351152563-27277-1-git-send-email-markwalters1009@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-12-03 22:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-03  0:58 [PATCH v2 0/3] Allow emacs to toggle display of all parts including multipart Mark Walters
2012-12-03  0:58 ` [PATCH v2 1/3] emacs: show: make refresh fix point(ish) Mark Walters
2012-12-03  0:58 ` [PATCH v2 2/3] emacs: allow the user to toggle the visibility of multipart/alternative parts Mark Walters
2012-12-03  0:58 ` [PATCH v2 3/3] emacs: show make default part button toggle view when sensible Mark Walters
2012-12-03 22:45 ` [PATCH v2 0/3] Allow emacs to toggle display of all parts including multipart Mark Walters

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).