[RFC PATCH v2 0/3] lib/cli/emacs: limit number of messages in search results

Subject: [RFC PATCH v2 0/3] lib/cli/emacs: limit number of messages in search results

Date: Mon, 31 Oct 2011 23:18:07 +0200

To: notmuch@notmuchmail.org

Cc: amdragon@mit.edu

From: Jani Nikula


Hi, this is an iteration of id:"cover.1319833617.git.jani@nikula.org" addressing
comments on the list and IRC. Main changes:

* Results are now limited based on threads (not messages) for thread and summary
  output. This is accomplished with a new lib function to count the number of
  threads in matching messages.

* cli part is now inspired by James Vasile's patch
  id:"8739gyw0zh.fsf@opensourcematters.org", with the additional ability to
  limit from the end of result set.

* Bugs reported by Daniel Schoepe fixed.

* Don't show buttons if everything is visible already.

I'm still marking it as RFC. It works for me, but patch 1 might be deemed
unacceptable.


BR,
Jani.


Jani Nikula (3):
  lib: add function to get the number of threads matching a search
  cli: add options --first and --maxitems to notmuch search
  emacs: support limiting the number of results shown in search results

 emacs/notmuch-hello.el |   17 ++++++++++--
 emacs/notmuch.el       |   53 ++++++++++++++++++++++++++++++++++---
 lib/notmuch.h          |   14 ++++++++++
 lib/query.cc           |   40 ++++++++++++++++++++++++++++
 notmuch-search.c       |   67 +++++++++++++++++++++++++++++++++++++++--------
 5 files changed, 171 insertions(+), 20 deletions(-)

-- 
1.7.5.4


Thread: