[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] Relative Message Numbers
From: |
Paul Fox |
Subject: |
Re: [Nmh-workers] Relative Message Numbers |
Date: |
Wed, 17 Apr 2013 17:20:08 -0400 |
i've implemented and tested the relative message selection code
as i described it earlier. thanks to all who contributed to the
design.
if "foo" denotes a single message, then just as "foo:n" currently
selects a range of n messages from foo to the (foo+(n-1))'th
(inclusive), the new syntax "foo=n" selects the single (foo+(n-1))'th
message. so given a folder containing these messages:
3
5
7
9
then 'pick cur:3' currently selects 3, 5, and 7, and now 'pick cur=3' will
select just message 7.
for sequences, just as "seq:n" currently selects a range of messages
from the start of seq through the n'th message in seq, the new "seq=n"
selects the single n'th message of seq.
so given a sequence 'seq' containing:
3
5
7
9
then 'pick seq:3' currently selects 3, 5, and 7, and now 'pick seq=3' will
select just message 7.
negative offsets work similarly. as a convenience feature when typing
negative offsets, "foo:-n" and "foo=-n" can be entered as "foo::n" and
"foo==n" respectively.
there was no discussion after i described all this last week, so i'll
push the changes soon.
paul
----------------------
paul fox, address@hidden (arlington, ma, where it's 61.2 degrees)
Re: [Nmh-workers] Relative Message Numbers, Paul Fox, 2013/04/02
Re: [Nmh-workers] Relative Message Numbers, Paul Fox, 2013/04/08
- Re: [Nmh-workers] Relative Message Numbers, Paul Fox, 2013/04/11
- Re: [Nmh-workers] Relative Message Numbers,
Paul Fox <=
- Re: [Nmh-workers] Relative Message Numbers, Ken Hornstein, 2013/04/17
- Re: [Nmh-workers] Relative Message Numbers, Paul Fox, 2013/04/17
- Re: [Nmh-workers] Relative Message Numbers, Ken Hornstein, 2013/04/18
- Re: [Nmh-workers] Relative Message Numbers, Paul Fox, 2013/04/18
- Re: [Nmh-workers] Relative Message Numbers, Ken Hornstein, 2013/04/18
Re: [Nmh-workers] Relative Message Numbers, Ralph Corderoy, 2013/04/18
Re: [Nmh-workers] Relative Message Numbers, David Levine, 2013/04/17
Re: [Nmh-workers] Relative Message Numbers, David Levine, 2013/04/18