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 7853E431FD0 for ; Mon, 22 Aug 2011 16:46:12 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.789 X-Spam-Level: X-Spam-Status: No, score=-0.789 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, T_MIME_NO_TEXT=0.01] 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 y1kabRIaYd-B for ; Mon, 22 Aug 2011 16:46:11 -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 8741D431FB6 for ; Mon, 22 Aug 2011 16:46:11 -0700 (PDT) Received: by fxd23 with SMTP id 23so4239922fxd.26 for ; Mon, 22 Aug 2011 16:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; bh=5Nqp/pV7QCCfraiQaIk/ilSLUwCq6lE/NqQeUVWjjEs=; b=IfM7SvwlgGnjMZ5uNZhE9FMvCPYMBxENkQNQOt1hFrntuS9UmtLnFzamrgrGXueSGh 3rJWXVjziYb5OayT017qCKXcjZu+rbQUV4WfJjAI+gvEhxWMZp/bbUQ+OUGH9UhuAQ/w FmYkZU1XI7DXOEIUD87MwGcckJ0E5clSHUNO0= Received: by 10.223.22.14 with SMTP id l14mr4423795fab.100.1314056770155; Mon, 22 Aug 2011 16:46:10 -0700 (PDT) Received: from localhost (p4FC78960.dip0.t-ipconnect.de [79.199.137.96]) by mx.google.com with ESMTPS id n7sm1962339faa.2.2011.08.22.16.46.07 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 22 Aug 2011 16:46:08 -0700 (PDT) From: Daniel Schoepe To: James Vasile , Michal Sojka , notmuch@notmuchmail.org Subject: Re: [PATCH] Return maximum of 150 results In-Reply-To: <87vctrq4or.fsf@hackervisions.org> References: <87zkj6um50.fsf@opensourcematters.org> <87mxf5v43c.fsf@steelpick.2x.cz> <87vctrq4or.fsf@hackervisions.org> User-Agent: Notmuch/0.6.1-73-g0604a34 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Tue, 23 Aug 2011 01:46:00 +0200 Message-ID: <87vctp103r.fsf@gilead.invalid> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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, 22 Aug 2011 23:46:12 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Sat, 20 Aug 2011 15:11:00 -0400, James Vasile = wrote: > On Fri, 19 Aug 2011 17:00:23 +0200, Michal Sojka wr= ote: > > If you really want this behavior, I propose to make the default value > > of notmuch-max-results infinity. >=20 > I'm attaching a revised patch that does as you suggest. Thanks. I think this is a nice feature. > +(defvar notmuch-max-results 0) This should probably be a defcustom and it also needs a docstring (saying, along with a general description, that 0 means "show all messages"). Changing it so that nil means all messages might be a bit nicer (since nil says "no maximum number of results" more clearly, I think) though, but that's probably just me nitpicking. Cheers, Daniel --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJOUuo5AAoJEIaTAtce+Z+JBqAP/0XHNnTlydb+n0aVl8GuzXmg KqDAtkOkmSFMmB2z1D0HK2j7vlBOnzZrC3j6C+DvxBSigRqYLsnkIotm32pCcZks kRLEt/yk7Ul5e6X2Wn6W75aj31aKtjq2hO6GRIqSSyJSWLqWiHpbVtKx5+qa97oK H2chXvu8a89lP1hT2ItSKaYl7h33fBqesctA21SypIZWiZe6MILl0CquqmS+bfSJ q8BDUt1EctFJfKu7/PwP+LfGOUJNl1Xx6QcanDGjtgDT4t8dGNgOxmJp2Q/rZgPw O/4kLX0JB8MJZTOCtvzdcKLZ5yT4TMSYJ7vN4inPv0rOso7jmHSai8ESQM1osvXv BH0pawfUY/Hca4XvOeWcijgDFHp5CCwknqvbhOXzYGzZVP7b6VY5IXt00V4v6IWv Z111ghrYlquiFY0Q0UCATku1+4oAnMCseeH22oihjafTdVCOoHdo4BsMDVwe7irC Er64VRaqOau0D0TYWMvkngiDEyqZAhAJTpqHBzcc/8BphUpgjVf0rBeMmrJ0NhV1 +5HDP/uG0dgzdgHqdrvT6RekpVV/maxEnno66+Bl5Jg89yCLvtL9G+EBp8IC+PgP /qn+PvQyUn/9UqMxPcqUFFE/1xOgm8AH+HLclRpHg4dqDE2chsIJg/FxmfaR18Xz DrD3nN4pHZEJiWP73V2N =oTyq -----END PGP SIGNATURE----- --=-=-=--