unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 0/3] Use invisibility to toggle display of all parts including multipart
@ 2012-12-04 23:27 Mark Walters
  2012-12-04 23:27 ` [PATCH 1/3] emacs: show: modify insert-part-header to save the button text Mark Walters
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Mark Walters @ 2012-12-04 23:27 UTC (permalink / raw)
  To: notmuch

This patch aims to do the same as
id:1354496317-24564-1-git-send-email-markwalters1009@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

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

end of thread, other threads:[~2012-12-15  5:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-04 23:27 [PATCH 0/3] Use invisibility to toggle display of all parts including multipart Mark Walters
2012-12-04 23:27 ` [PATCH 1/3] emacs: show: modify insert-part-header to save the button text Mark Walters
2012-12-11  0:22   ` Austin Clements
2012-12-04 23:27 ` [PATCH 2/3] emacs: show: add overlays for each part Mark Walters
2012-12-11  3:59   ` Austin Clements
2012-12-13  8:54     ` Mark Walters
2012-12-15  5:16       ` Austin Clements
2012-12-04 23:27 ` [PATCH 3/3] emacs: show: add invisibility button action Mark Walters
2012-12-05  9:41   ` [PATCH] emacs: show: make RET always toggle parts where plausible Mark Walters
2012-12-11  4:07     ` Austin Clements
2012-12-11  4:06   ` [PATCH 3/3] emacs: show: add invisibility button action Austin Clements
2012-12-13  8:57     ` Mark Walters
2012-12-05 17:24 ` [PATCH 0/3] Use invisibility to toggle display of all parts including multipart Jani Nikula

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).