[PATCH] Fix build with binutils-2.22
[notmuch-archives.git] / bc / 8b9de123d3b38dde7f7e372064434ac893d82b
1 Return-Path: <cworth@cworth.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 3325B431FBD;\r
6         Mon, 21 Dec 2009 19:16:51 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id 9l2AYfs4A6eX; Mon, 21 Dec 2009 19:16:50 -0800 (PST)\r
11 Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
12         by olra.theworths.org (Postfix) with ESMTP id 4DB44431FAE;\r
13         Mon, 21 Dec 2009 19:16:50 -0800 (PST)\r
14 Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
15         id A5FC0254306; Mon, 21 Dec 2009 19:16:50 -0800 (PST)\r
16 From: Carl Worth <cworth@cworth.org>\r
17 To: Ruben Pollan <meskio@sindominio.net>, notmuch@notmuchmail.org\r
18 In-Reply-To: <87r5qnol78.fsf@yoom.home.cworth.org>\r
19 References: <20091126202347.GA16654@blackspot>\r
20         <1260364206-344-1-git-send-email-meskio@sindominio.net>\r
21         <20091209132446.GC23878@blackspot>\r
22         <877hsv6hbo.fsf@yoom.home.cworth.org>\r
23         <87r5qnol78.fsf@yoom.home.cworth.org>\r
24 Date: Mon, 21 Dec 2009 19:16:49 -0800\r
25 Message-ID: <87pr67ofz2.fsf@yoom.home.cworth.org>\r
26 MIME-Version: 1.0\r
27 Content-Type: multipart/signed; boundary="=-=-=";\r
28         micalg=pgp-sha1; protocol="application/pgp-signature"\r
29 Subject: Re: [notmuch] [PATCH] Added regress option to tags iterator\r
30 X-BeenThere: notmuch@notmuchmail.org\r
31 X-Mailman-Version: 2.1.12\r
32 Precedence: list\r
33 List-Id: "Use and development of the notmuch mail system."\r
34         <notmuch.notmuchmail.org>\r
35 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
36         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
37 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
38 List-Post: <mailto:notmuch@notmuchmail.org>\r
39 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
40 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
41         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
42 X-List-Received-Date: Tue, 22 Dec 2009 03:16:51 -0000\r
43 \r
44 --=-=-=\r
45 Content-Transfer-Encoding: quoted-printable\r
46 \r
47 On Mon, 21 Dec 2009 17:23:55 -0800, Carl Worth <cworth@cworth.org> wrote:\r
48 >   New function                Corresponds to existing function (if any)\r
49 >   ------------                -----------------------------------------\r
50 >   move_to_first               <implicit in iterator creation>\r
51 >   has_next            has_more\r
52 >   move_to_next                advance\r
53 >=20\r
54 >   move_to_last                <none>\r
55 >   has_previous                <none>\r
56 >   move_to_previous    <none>\r
57 >=20\r
58 >   get                 get\r
59 >=20\r
60 > The semantics of those all seem clear enough to me. They provide what's\r
61 > necessary for all three portions of a for loop, (in either direction),\r
62 \r
63 Except that they don't. :-P\r
64 \r
65 We don't want has_next and has_previous but something more like "has\r
66 current", (perhaps to pair with get_current?).\r
67 \r
68 > The only downside is that the function names are a bit long in some\r
69 > cases, but I'm willing to live with that until someone comes up with\r
70 > better.\r
71 \r
72 One option is to just drop the "move_ " prefix. Then everything will be\r
73 a two-word function. So the new proposal is:\r
74 \r
75 to_first\r
76 has_current\r
77 to_next\r
78 \r
79 to_last\r
80 has_current\r
81 to_previous\r
82 \r
83 get_current\r
84 \r
85 Better?\r
86 \r
87 =2DCarl\r
88 \r
89 --=-=-=\r
90 Content-Type: application/pgp-signature\r
91 \r
92 -----BEGIN PGP SIGNATURE-----\r
93 Version: GnuPG v1.4.10 (GNU/Linux)\r
94 \r
95 iD8DBQFLMDoi6JDdNq8qSWgRAvYUAJ0VcESuFmzvVPz34uybiZ5dTjW0SwCffKLg\r
96 JS5n3wBuBsFDHyCgi2bRIFk=\r
97 =Aj1I\r
98 -----END PGP SIGNATURE-----\r
99 --=-=-=--\r