[PATCH 0/2] Allow JSON to use non-entire thread, and use for elide

Mark Walters markwalters1009 at gmail.com
Tue Apr 10 10:04:54 PDT 2012


These two patches supersede the series [1] and the first patch
replaces [2].

The first patch allows --entire-thread=false for notmuch-show.c when
the output format is JSON. In the previous version [2] Austin
suggested that we should output an empty message (i.e., {}) for
non-matching messages rather than just omitting them. This version
does that.

Note the first patch is entirely functional without the second.

The second patch uses the first to implement the "elide" functionality
in the emacs interface on the cli-side rather than on the emacs
side. This is substantially faster in some cases. In current emacs
show view it is a relatively small speed-up which is only noticable
with large threads. However, it will be used by notmuch-pick [3] and
there the speed up will be important. (I have a current version of
notmuch-pick which I will submit in the near future.)

Best wishes

Mark


[1] id:"1330033294-21980-1-git-send-email-markwalters1009 at gmail.com"
[2] id:"1331377533-30262-3-git-send-email-markwalters1009 at gmail.com"
[3] id:"1329072579-27340-1-git-send-email-markwalters1009 at gmail.com"

Mark Walters (2):
  cli: make --entire-thread=false work for format=json.
  emacs: make elide messages use notmuch-show for omitting messages.

 emacs/notmuch-show.el |   17 +++++++++--------
 notmuch-show.c        |   33 ++++++++++++++++++++++++++++-----
 2 files changed, 37 insertions(+), 13 deletions(-)

-- 
1.7.9.1



More information about the notmuch mailing list