nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Relative Message Numbers

2013-04-17 16:20:17
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, pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us (arlington, ma, 
where it's 61.2 degrees)

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>