[PATCH] test/thread-order: more robust loop exit in case of broken input
[notmuch-archives.git] / fe / d11af79181b905e1fccc8b6edf3d03c8e291cc
1 Return-Path: <dme@dme.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 E9304431FD5\r
6         for <notmuch@notmuchmail.org>; Fri, 12 Dec 2014 05:08:49 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.699\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=0.001]\r
13         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 0v61H3VJjuBy for <notmuch@notmuchmail.org>;\r
17         Fri, 12 Dec 2014 05:08:46 -0800 (PST)\r
18 Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com\r
19  [74.125.82.41])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  EE1A8431FBC    for <notmuch@notmuchmail.org>; Fri, 12 Dec 2014 05:08:45 -0800\r
22  (PST)\r
23 Received: by mail-wg0-f41.google.com with SMTP id y19so9046769wgg.28\r
24         for <notmuch@notmuchmail.org>; Fri, 12 Dec 2014 05:08:44 -0800 (PST)\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=1e100.net; s=20130820;\r
27         h=x-gm-message-state:user-agent:to:subject:in-reply-to:references\r
28         :from:date:message-id:mime-version:content-type\r
29         :content-transfer-encoding;\r
30         bh=5s1VRoF2msz1QHsadCQtUP36tf4N83fAlJbLm88MP1A=;\r
31         b=emk+3dTJkZyceQGcZVSSH29qODrUtiXQhwG2WOtMwVXNF+qM4WDw/S9A34nwr4digX\r
32         Mz1Um6Gygd4dxFAZToHFG/K/CKJ+xUV/eP76jmfXS742dWW82uJ52vL3DLdeBPPdUA89\r
33         ZeKuStCkpCuP8dsZ0FKeRhwzSAk4VKYDJRN55BJrahHnQ50PwrldW5Mi8lMZc2KnfNdE\r
34         2vfiH0VYreKrQuJL1fcfhocre/0U2wep6FkLY3n10vo7scsVkbnXqaS3cDb4Q4rrU0Mo\r
35         grZjPSILwWniC6uASCkri3Kuwen96orUNQIINWZvPUyU055bElOkDZUyOT8UZ9Yg/QlW\r
36         a8fQ==\r
37 X-Gm-Message-State:\r
38  ALoCoQlhQjs00AIw+suLwlE8Iv0I0JE2mzw85h81+iLirr785VKjHCRyYCpHuQagVMF1XrfJLpv2\r
39 X-Received: by 10.194.249.232 with SMTP id yx8mr27669127wjc.1.1418389724504;\r
40         Fri, 12 Dec 2014 05:08:44 -0800 (PST)\r
41 Received: from disaster-area.hh.sledj.net\r
42         ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
43         by mx.google.com with ESMTPSA id\r
44         qg11sm1905265wic.17.2014.12.12.05.08.43\r
45         (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
46         Fri, 12 Dec 2014 05:08:43 -0800 (PST)\r
47 Received: from localhost (30000@localhost [local]);\r
48         by localhost (OpenSMTPD) with ESMTPA id 548d6f02;\r
49         Fri, 12 Dec 2014 13:08:42 +0000 (UTC)\r
50 User-Agent: OpenSMTPD enqueuer (Demoostik)\r
51 To: Lele Gaifax <lele@metapensiero.it>, notmuch@notmuchmail.org\r
52 Subject: Re: Address completion in Emacs\r
53 In-Reply-To: <87vblh829w.fsf@nautilus.nautilus>\r
54 References: <87d27p9t0f.fsf@nautilus.nautilus>\r
55         <m24mt1hxoy.fsf@heart-of-gold.hh.sledj.net>\r
56         <87vblh829w.fsf@nautilus.nautilus>\r
57 From: David Edmondson <dme@dme.org>\r
58 Date: Fri, 12 Dec 2014 13:08:42 +0000\r
59 Message-ID: <m21to5hv6t.fsf@heart-of-gold.hh.sledj.net>\r
60 MIME-Version: 1.0\r
61 Content-Type: text/plain; charset=utf-8\r
62 Content-Transfer-Encoding: quoted-printable\r
63 X-BeenThere: notmuch@notmuchmail.org\r
64 X-Mailman-Version: 2.1.13\r
65 Precedence: list\r
66 List-Id: "Use and development of the notmuch mail system."\r
67         <notmuch.notmuchmail.org>\r
68 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
69         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
70 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
71 List-Post: <mailto:notmuch@notmuchmail.org>\r
72 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
73 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
74         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
75 X-List-Received-Date: Fri, 12 Dec 2014 13:08:50 -0000\r
76 \r
77 On Fri, Dec 12 2014, Lele Gaifax wrote:\r
78 > David Edmondson <dme@dme.org> writes:\r
79 >\r
80 >> On Fri, Dec 12 2014, Lele Gaifax wrote:\r
81 >>> Wouldn't it be more "correct" to pass the unchanged `options' list and\r
82 >>> the "real" `orig' text as `initial-input' to the customizable function\r
83 >>> instead?\r
84 >>\r
85 >> Would I then have to press TAB twice to get the first result?\r
86 >\r
87 > No, why? The customizable `notmuch-address-selection-function' would be\r
88 > free to pass (car options) as the initial-input of `completing-read', if\r
89 > needed. When using `ido-completing-read', the first option is\r
90 > pre-selected, so a RET confirms that.\r
91 \r
92 Understood.\r
93 \r
94 >>> I understand that it may be undesiderable to break existing\r
95 >>> configurations by rectifying the arguments in that way, and in such case\r
96 >>> could we change the `initial-input' argument name to better reflect the\r
97 >>> fact that it actually contains one possible candidate instead?\r
98 >>\r
99 >> From the perspective of `notmuch-address-selection-function', it _is_\r
100 >> the `initial-input', as that is what is presented to the user.\r
101 >\r
102 > IMHO no, it's not: what it receives as `initial-input' is not what the\r
103 > user actually wrote, but rather just the (somewhat arbitrary) first\r
104 > candidate address found by `notmuch-address-command'.\r
105 \r
106 I think that we're at cross\r
107 purposes. `notmuch-address-selection-function' will use the\r
108 `initial-input' as the initial input of the completion, so that's what\r
109 it chooses to call the argument. It can't be blamed if whatever is\r
110 passed to it is not something that you would consider the initial input.\r
111 \r
112 > thanks&bye, lele.\r
113 > --=20\r
114 > nickname: Lele Gaifax | Quando vivr=C3=B2 di quello che ho pensato ieri\r
115 > real: Emanuele Gaifas | comincer=C3=B2 ad aver paura di chi mi copia.\r
116 > lele@metapensiero.it  |                 -- Fortunato Depero, 1929.\r
117 >\r
118 > _______________________________________________\r
119 > notmuch mailing list\r
120 > notmuch@notmuchmail.org\r
121 > http://notmuchmail.org/mailman/listinfo/notmuch\r