[notmuch] [PATCH] Added regress option to tags iterator

2010-03-11 Thread Ruben Pollan
On 09:36, Tue 09 Mar 10, Carl Worth wrote: > So the final proposal for iteration in either direction is: > > move_to_first > valid > move_to_next > > move_to_last > valid > move_to_previous > > get Fine for me. > I've just pushed commits

[notmuch] [PATCH] Added regress option to tags iterator

2010-03-09 Thread Carl Worth
On Mon, 21 Dec 2009 19:16:49 -0800, Carl Worth wrote: > One option is to just drop the "move_ " prefix. Then everything will be > a two-word function. So the new proposal is: > > to_first > has_current > to_next > > to_last > has_current > to_previous > > get_current > > Better? Looking back

Re: [notmuch] [PATCH] Added regress option to tags iterator

2010-03-09 Thread Carl Worth
On Mon, 21 Dec 2009 19:16:49 -0800, Carl Worth cwo...@cworth.org wrote: One option is to just drop the move_ prefix. Then everything will be a two-word function. So the new proposal is: to_first has_current to_next to_last has_current to_previous get_current Better? Looking

[notmuch] [PATCH] Added regress option to tags iterator

2010-01-06 Thread Ruben Pollan
On 11:39, Tue 05 Jan 10, Carl Worth wrote: > Right. So example code using this would be: > > for (notmuch_messages_to_first (messages); > notmuch_messages_has_current (messages); > notmuch_messages_to_next (messages)) > { > notmuch_message_t

[notmuch] [PATCH] Added regress option to tags iterator

2010-01-05 Thread Ruben Pollan
On 19:16, Mon 21 Dec 09, Carl Worth wrote: > On Mon, 21 Dec 2009 17:23:55 -0800, Carl Worth wrote: > > New function Corresponds to existing function (if any) > > - > > move_to_first > > has_next

[notmuch] [PATCH] Added regress option to tags iterator

2010-01-05 Thread Carl Worth
On Tue, 5 Jan 2010 16:33:32 +0100, Ruben Pollan wrote: > Not sure if I understand that. Let's see if I understand well. move_to_first > (or move_to_last) will put the iterator in the first (or last) valid item. > move_to_next (and move_to_previous) will be able to reach an invalid item > outside

Re: [notmuch] [PATCH] Added regress option to tags iterator

2010-01-05 Thread Ruben Pollan
On 19:16, Mon 21 Dec 09, Carl Worth wrote: On Mon, 21 Dec 2009 17:23:55 -0800, Carl Worth cwo...@cworth.org wrote: New function Corresponds to existing function (if any) - move_to_first implicit

Re: [notmuch] [PATCH] Added regress option to tags iterator

2010-01-05 Thread Carl Worth
On Tue, 5 Jan 2010 16:33:32 +0100, Ruben Pollan mes...@sindominio.net wrote: Not sure if I understand that. Let's see if I understand well. move_to_first (or move_to_last) will put the iterator in the first (or last) valid item. move_to_next (and move_to_previous) will be able to reach an

[notmuch] [PATCH] Added regress option to tags iterator

2009-12-21 Thread Carl Worth
On Mon, 21 Dec 2009 17:23:55 -0800, Carl Worth wrote: > New functionCorresponds to existing function (if any) > - > move_to_first > has_nexthas_more > move_to_next

[notmuch] [PATCH] Added regress option to tags iterator

2009-12-21 Thread Carl Worth
On Wed, 09 Dec 2009 12:08:43 -0800, Carl Worth wrote: > On Wed, 9 Dec 2009 14:24:46 +0100, Ruben Pollan > wrote: > > Do you like to call them regress? Should I change that? ... > > What about the functions notmuch_*_is_first? Is kind of reversed logic than > > notmuch_*_has_more, the last are

[notmuch] [PATCH] Added regress option to tags iterator

2009-12-09 Thread Ruben Pollan
On 14:21, Wed 09 Dec 09, Mark Anderson wrote: > advance/retreat Jeffrey already suggested retreat. I let you (English speakers) decide, my English level is not enough for it. -- Rub?n Poll?n | jabber:meskio at jabber.org -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ?sta es la historia de

[notmuch] [PATCH] Added regress option to tags iterator

2009-12-09 Thread Ruben Pollan
On 12:08, Wed 09 Dec 09, Carl Worth wrote: > On Wed, 9 Dec 2009 14:24:46 +0100, Ruben Pollan > wrote: > > Do you like to call them regress? Should I change that? > > I don't love the name, (since it's so close to the word "regression" > which has a totally different meaning in software

[notmuch] [PATCH] Added regress option to tags iterator

2009-12-09 Thread Ruben Pollan
With the last 4 patches there is more or less all I wanted implemented. Do you like to call them regress? Should I change that? What about the functions notmuch_*_is_first? Is kind of reversed logic than notmuch_*_has_more, the last are true when is not reach the limit but the first ones are

[notmuch] [PATCH] Added regress option to tags iterator

2009-12-09 Thread Mark Anderson
Excerpts from Carl Worth's message of Wed Dec 09 13:08:43 -0700 2009: > On Wed, 9 Dec 2009 14:24:46 +0100, Ruben Pollan > wrote: > > Do you like to call them regress? Should I change that? > > I don't love the name, (since it's so close to the word "regression" > which has a totally different

[notmuch] [PATCH] Added regress option to tags iterator

2009-12-09 Thread Ruben Pollan
Added the functions notmuch_tags_regress and notmuch_tags_is_first to notmuch library. With them is possible to iterate backwards on tags. * notmuch_tags_regress do the opposite than notmuch_tags_advance, getting the tags iterator one position backwards. * notmuch_tags_is_first return TRUE if

[notmuch] [PATCH] Added regress option to tags iterator

2009-12-09 Thread Carl Worth
On Wed, 9 Dec 2009 14:21:04 -0700, Mark Anderson wrote: > I think that changing has_more is going to be a requirement to come up with a > consistent set of names. What? You don't want to pair it with has_less ? -Carl -- next part -- A non-text attachment was

[notmuch] [PATCH] Added regress option to tags iterator

2009-12-09 Thread Carl Worth
On Wed, 9 Dec 2009 14:24:46 +0100, Ruben Pollan wrote: > Do you like to call them regress? Should I change that? I don't love the name, (since it's so close to the word "regression" which has a totally different meaning in software context). But I also don't have an immediate suggestion for an

[notmuch] [PATCH] Added regress option to tags iterator

2009-12-09 Thread Ruben Pollan
Added the functions notmuch_tags_regress and notmuch_tags_is_first to notmuch library. With them is possible to iterate backwards on tags. * notmuch_tags_regress do the opposite than notmuch_tags_advance, getting the tags iterator one position backwards. * notmuch_tags_is_first return TRUE if

Re: [notmuch] [PATCH] Added regress option to tags iterator

2009-12-09 Thread Ruben Pollan
With the last 4 patches there is more or less all I wanted implemented. Do you like to call them regress? Should I change that? What about the functions notmuch_*_is_first? Is kind of reversed logic than notmuch_*_has_more, the last are true when is not reach the limit but the first ones are

Re: [notmuch] [PATCH] Added regress option to tags iterator

2009-12-09 Thread Carl Worth
On Wed, 9 Dec 2009 14:24:46 +0100, Ruben Pollan mes...@sindominio.net wrote: Do you like to call them regress? Should I change that? I don't love the name, (since it's so close to the word regression which has a totally different meaning in software context). But I also don't have an immediate

Re: [notmuch] [PATCH] Added regress option to tags iterator

2009-12-09 Thread Mark Anderson
Excerpts from Carl Worth's message of Wed Dec 09 13:08:43 -0700 2009: On Wed, 9 Dec 2009 14:24:46 +0100, Ruben Pollan mes...@sindominio.net wrote: Do you like to call them regress? Should I change that? I don't love the name, (since it's so close to the word regression which has a totally

Re: [notmuch] [PATCH] Added regress option to tags iterator

2009-12-09 Thread Carl Worth
On Wed, 9 Dec 2009 14:21:04 -0700, Mark Anderson markr.ander...@amd.com wrote: I think that changing has_more is going to be a requirement to come up with a consistent set of names. What? You don't want to pair it with has_less ? -Carl pgpPqJcgqhMLA.pgp Description: PGP signature

Re: [notmuch] [PATCH] Added regress option to tags iterator

2009-12-09 Thread Ruben Pollan
On 12:08, Wed 09 Dec 09, Carl Worth wrote: On Wed, 9 Dec 2009 14:24:46 +0100, Ruben Pollan mes...@sindominio.net wrote: Do you like to call them regress? Should I change that? I don't love the name, (since it's so close to the word regression which has a totally different meaning in

Re: [notmuch] [PATCH] Added regress option to tags iterator

2009-12-09 Thread Ruben Pollan
On 14:21, Wed 09 Dec 09, Mark Anderson wrote: advance/retreat Jeffrey already suggested retreat. I let you (English speakers) decide, my English level is not enough for it. -- Rubén Pollán | jabber:mes...@jabber.org -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Ésta es la historia de una