database error
[notmuch-archives.git] / 5e / 37c1345d89a6a31fb823cf8dbaa407ec6c57b3
1 Return-Path: <dmitry.kurochkin@gmail.com>\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 C1928429E28\r
6         for <notmuch@notmuchmail.org>; Wed, 25 May 2011 16:09:50 -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.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id 04JuEO7UsYVR for <notmuch@notmuchmail.org>;\r
17         Wed, 25 May 2011 16:09:49 -0700 (PDT)\r
18 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
19         [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 85ACC431FB6\r
22         for <notmuch@notmuchmail.org>; Wed, 25 May 2011 16:09:49 -0700 (PDT)\r
23 Received: by fxm8 with SMTP id 8so264400fxm.26\r
24         for <notmuch@notmuchmail.org>; Wed, 25 May 2011 16:09:48 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:from:to:subject:in-reply-to:references\r
27         :user-agent:date:message-id:mime-version:content-type;\r
28         bh=p+gpt6TC/zSkqROyprqdZ8Gb1fBI+tFR4ZCXe6RyKK4=;\r
29         b=vAmfh56pfUjuSqnF7uYCLVgF1HCN9FhkhVxZ/ilGlNx3pFmerJC1hKiV08gs9IycUH\r
30         IZQ8S85bd7Gw29bkjbTOre/GhuOZ0Ca/kbx5eyaLFJiJA1hDYNq5R7AA6zuNx1l395Qf\r
31         WzF6BmsEEtNcfKnGKduuv0iVYKnxLYTeP1bXM=\r
32 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
33         h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
34         :mime-version:content-type;\r
35         b=pNxKqdPav6TCl2bW4sbWNXoZ1HWzvkSf83nhLAWCsZkzGEbB5RDc+tcChqW2ufGlwE\r
36         rQzM9C0LIUTGSH1Hk90n0vOiTxjsdMFWBJj4K15dD/rMWCwMLc7/9hzCAp0+04KKLOtz\r
37         o/wgEKSIknA/mWRECpAFUxHkgqGqDeUknBGn4=\r
38 Received: by 10.223.89.134 with SMTP id e6mr144601fam.147.1306364988231;\r
39         Wed, 25 May 2011 16:09:48 -0700 (PDT)\r
40 Received: from localhost ([91.144.186.21])\r
41         by mx.google.com with ESMTPS id l26sm49839fam.45.2011.05.25.16.09.46\r
42         (version=TLSv1/SSLv3 cipher=OTHER);\r
43         Wed, 25 May 2011 16:09:47 -0700 (PDT)\r
44 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
45 To: Carl Worth <cworth@cworth.org>, notmuch@notmuchmail.org\r
46 Subject: Re: [PATCH 3/5] Fix hiding a message while some citations are shown\r
47         in notmuch-show view.\r
48 In-Reply-To: <87lixu9z5b.fsf@yoom.home.cworth.org>\r
49 References: <1306361416-5019-1-git-send-email-dmitry.kurochkin@gmail.com>\r
50         <1306361416-5019-4-git-send-email-dmitry.kurochkin@gmail.com>\r
51         <87oc2qa07g.fsf@yoom.home.cworth.org> <87k4depfyj.fsf@gmail.com>\r
52         <87lixu9z5b.fsf@yoom.home.cworth.org>\r
53 User-Agent: Notmuch/0.5-216-g0104e23 (http://notmuchmail.org) Emacs/23.3.1\r
54         (x86_64-pc-linux-gnu)\r
55 Date: Thu, 26 May 2011 03:10:11 +0400\r
56 Message-ID: <87hb8ipeb0.fsf@gmail.com>\r
57 MIME-Version: 1.0\r
58 Content-Type: text/plain; charset=us-ascii\r
59 X-BeenThere: notmuch@notmuchmail.org\r
60 X-Mailman-Version: 2.1.13\r
61 Precedence: list\r
62 List-Id: "Use and development of the notmuch mail system."\r
63         <notmuch.notmuchmail.org>\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
67 List-Post: <mailto:notmuch@notmuchmail.org>\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
70         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
71 X-List-Received-Date: Wed, 25 May 2011 23:09:50 -0000\r
72 \r
73 On Wed, 25 May 2011 15:46:40 -0700, Carl Worth <cworth@cworth.org> wrote:\r
74 > On Thu, 26 May 2011 02:34:28 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:\r
75 > > I am not sure how it is best to test this.  The common `printc' method\r
76 > > for emacs tests does not work, because it prints invisible parts as\r
77 > > well.  We need either to find a way to print only visible text on the\r
78 > > console, or test it inside emacs somehow.  Any suggestions?\r
79\r
80 > Unfortunately, I don't have a good plan here. I delayed implementing any\r
81 > automated testing at all of the emacs interface precisely because of\r
82 > this problem. It's seems to me that surely emacs must have some built-in\r
83 > mechanism for copying the visible portion of a block of text, but I've\r
84 > not been able to find it.\r
85\r
86 \r
87 Me too.\r
88 \r
89 > We could do something cheesy (and slow) by marching through the buffer\r
90 > character-by-character in elisp and testing for visibility, but the\r
91 > emacs tests are already the slowest part of "make test"[*] so that would\r
92 > be obnoxious.\r
93\r
94 \r
95 Indeed.\r
96 \r
97 > > Note that this is exactly the patch that hits the isearch emacs bug.  Do\r
98 > > I understand correctly that you are ready to push the series despite of\r
99 > > it (given that we have a test)?\r
100\r
101 > Breaking isearch would be really unfortunate. That's a really nice\r
102 > feature of the emacs frontend currently.\r
103\r
104 > So I would notice that breakage, (while I've apparently never before\r
105 > noticed the breakage of having visible citations in a hidden message).\r
106\r
107 > So no, I'm not saying I'm ready to push the series while emacs is broken.\r
108\r
109 \r
110 Well, emacs trunk is not broken :)  The bug is in lisp code, so you can\r
111 fix it in .emacs by redefining `isearch-range-invisible' function.  I do\r
112 that now.\r
113 \r
114 I do not think I will make myself work on the test until it is likely to\r
115 be pushed.  I will try to not to forget about it, so sometime later I\r
116 may be back to it :)\r
117 \r
118 Please consider pushing other patches from the series.  They do not fix\r
119 any bug, but do simplify the code.  The last patch uses list for\r
120 invisible overlay property as well.  But it does not break isearch\r
121 because we do not search in hidden messages.\r
122 \r
123 BTW would be nice to have a set of known-to-fail tests, i.e. bugs that\r
124 are not fixed yet.  If we had it, the above test could be implemented\r
125 and committed before we have the fix pushed.\r
126 \r
127 > -Carl\r
128\r
129 > [*] Maybe the performance of the emacs testing could be significantly\r
130 > improved by sharing a single invocation of emacs? Perhaps this wouldn't\r
131 > even be hard by just using emacsclient?\r
132\r
133 \r
134 This is possible as long as tests do not affect each other.  Would be a\r
135 nice improvement.\r
136 \r
137 Regards,\r
138   Dmitry\r