Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A9D9A429E21 for ; Fri, 28 Oct 2011 13:59:43 -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 azf+VOLFg+H1 for ; Fri, 28 Oct 2011 13:59:43 -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 C3A7E431FB6 for ; Fri, 28 Oct 2011 13:59:42 -0700 (PDT) Received: by faai28 with SMTP id i28so4419077faa.26 for ; Fri, 28 Oct 2011 13:59:40 -0700 (PDT) Received: by 10.223.91.73 with SMTP id l9mr4229074fam.22.1319835580073; Fri, 28 Oct 2011 13:59:40 -0700 (PDT) Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi. [80.220.92.23]) by mx.google.com with ESMTPS id 5sm19462345fad.9.2011.10.28.13.59.37 (version=SSLv3 cipher=OTHER); Fri, 28 Oct 2011 13:59:38 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [RFC PATCH 0/3] lib/cli/emacs: limit number of messages in search results Date: Fri, 28 Oct 2011 23:59:28 +0300 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: Fri, 28 Oct 2011 20:59:43 -0000 Hi, here are a few RFC patches that add support for limiting the number of messages in search results. The main goal was emacs; the lib/cli patches could probably be better thought out to be more general. The emacs interface was inspired by vc-print-log in Emacs vc.el. You'll get buttons [Show 2X messages] and [Show unlimited messages] at the end of search results to expand the results. You can use the 2X button repeatedly to increase the limit for the buffer. When the bulk of the work was done, I was told in IRC that patches exist towards a similar goal: id:"87vctrq4or.fsf@hackervisions.org" id:"8739gyw0zh.fsf@opensourcematters.org" My approach is slightly different. I think it's easier and better to do this in lib rather than just in cli. BR, Jani. Jani Nikula (3): lib: add support for limiting the number of search results cli: add support for limiting the number of search results emacs: support limiting the number of messages shown in search results emacs/notmuch-hello.el | 19 ++++++++++++++++--- emacs/notmuch.el | 43 ++++++++++++++++++++++++++++++++++++++----- lib/notmuch.h | 3 +++ lib/query.cc | 26 ++++++++++++++++++++++++-- notmuch-search.c | 10 ++++++++++ 5 files changed, 91 insertions(+), 10 deletions(-) -- 1.7.5.4