Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / c5 / bad8ec97d3286ffa8f978f26b51da4a787765c
1 Return-Path: <jani@nikula.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 93617431FD0\r
6         for <notmuch@notmuchmail.org>; Wed,  2 Nov 2011 02:27:49 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id bHJrE9nlgycI for <notmuch@notmuchmail.org>;\r
16         Wed,  2 Nov 2011 02:27:49 -0700 (PDT)\r
17 Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com\r
18         [209.85.212.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id F316D431FB6\r
21         for <notmuch@notmuchmail.org>; Wed,  2 Nov 2011 02:27:48 -0700 (PDT)\r
22 Received: by vws19 with SMTP id 19so3113057vws.26\r
23         for <notmuch@notmuchmail.org>; Wed, 02 Nov 2011 02:27:47 -0700 (PDT)\r
24 Received: by 10.52.27.208 with SMTP id v16mr3758205vdg.22.1320226067104;\r
25         Wed, 02 Nov 2011 02:27:47 -0700 (PDT)\r
26 Received: from localhost (nikula.org. [92.243.24.172])\r
27         by mx.google.com with ESMTPS id il5sm2554890vdb.7.2011.11.02.02.27.43\r
28         (version=SSLv3 cipher=OTHER); Wed, 02 Nov 2011 02:27:44 -0700 (PDT)\r
29 From: Jani Nikula <jani@nikula.org>\r
30 To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
31 Subject: Re: [RFC PATCH v2 0/3] lib/cli/emacs: limit number of messages in\r
32         search results\r
33 In-Reply-To: <87zkgg6n3z.fsf@zancas.localnet>\r
34 References: <cover.1320093940.git.jani@nikula.org>\r
35         <87zkgg6n3z.fsf@zancas.localnet>\r
36 User-Agent: Notmuch/0.5-232-g917e874 (http://notmuchmail.org) Emacs/23.1.1\r
37         (i686-pc-linux-gnu)\r
38 Date: Wed, 02 Nov 2011 09:27:41 +0000\r
39 Message-ID: <87aa8ekh6a.fsf@nikula.org>\r
40 MIME-Version: 1.0\r
41 Content-Type: text/plain; charset=us-ascii\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Wed, 02 Nov 2011 09:27:49 -0000\r
55 \r
56 On Tue, 01 Nov 2011 09:30:56 -0300, David Bremner <david@tethera.net> wrote:\r
57 > Is just because it add a function to the library that you think this\r
58 > might be problematic?  I don't think we are super-dogmatic about the\r
59 > library never growing.  When notmuch started, there were no bindings, so\r
60 > in retrospect maybe more functionality went into the CLI than might\r
61 > happen if we started from scratch. If I remember Carl's statement\r
62 > correctly, one rule is that stuff in the library should not require\r
63 > configuration.\r
64 \r
65 Hi, thanks, that's encouraging. It's mostly that, based on past\r
66 experience, I'm hesitant about extending a library interface. Once you\r
67 get users, you have to live with it. So you want to get it right.\r
68 \r
69 Having said that, I think in this v2 of the set, the library interface\r
70 for notmuch_query_count_threads() is sane and complimentary to the\r
71 existing notmuch_query_count_messages(). (Also quoting IRC: "<amdragon>\r
72 j4ni: Yes, the interface seems totally reasonable.") Later on, someone\r
73 might come up with a better implementation, but for now it's already\r
74 much better than having to iterate and construct the threads.\r
75 \r
76 I'll prepare a v3 with some tests and polish.\r
77 \r
78 BR,\r
79 Jani.\r