From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 3FD31431FD0 for ; Mon, 31 Oct 2011 14:18:16 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RjB-SqlE6PwI for ; Mon, 31 Oct 2011 14:18:15 -0700 (PDT) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 84BDF431FB6 for ; Mon, 31 Oct 2011 14:18:15 -0700 (PDT) Received: by faai28 with SMTP id i28so6745606faa.26 for ; Mon, 31 Oct 2011 14:18:14 -0700 (PDT) Received: by 10.223.5.66 with SMTP id 2mr31781096fau.26.1320095894232; Mon, 31 Oct 2011 14:18:14 -0700 (PDT) Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi. [80.220.92.23]) by mx.google.com with ESMTPS id i3sm1966222faf.0.2011.10.31.14.18.11 (version=SSLv3 cipher=OTHER); Mon, 31 Oct 2011 14:18:12 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org 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 Message-Id: X-Mailer: git-send-email 1.7.5.4 Cc: amdragon@mit.edu X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2011 21:18:16 -0000 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