From 1fd8b7866f189a66e4491b01452f476371759f91 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 23 Nov 2009 20:12:57 -0800 Subject: notmuch search: Remove the chunked-searching hack. This was a poor workaround around the fact that the existing notmuch_threads_t object is implemented poorly. It's got a fine iterartor-based interface, but the implementation does all of the work up-front in _create rather than doing the work incrementally while iterating. So to start fixing this, first get rid of all the hacks we had working around this. This drops the --first and --max-threads options from the search command, (but hopefully nobody was using them anyway---notmuch.el certainly wasn't). --- notmuch-show.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'notmuch-show.c') diff --git a/notmuch-show.c b/notmuch-show.c index c7f13204..edebacaa 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -238,7 +238,7 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[])) return 1; } - for (threads = notmuch_query_search_threads (query, 0, -1); + for (threads = notmuch_query_search_threads (query); notmuch_threads_has_more (threads); notmuch_threads_advance (threads)) { -- cgit v1.2.3