Re: Possible bug with text search range

cyrille henry via Pd-list <[email protected]> Thu, 19 Mar 2026 15:43:01 +0100
Newsgroups gmane.comp.multimedia.puredata.general
Message-ID <[email protected]>
you are right!
the range message did not work as OP (and I) expected.

Cheers
C

Le 19/03/2026 à 13:55, Ben Wesch a écrit :
> cyrille henry wrote:
>> It look like the text search ignore the range in some situation.
> 
> there was some confusion about the second argument in the `range` message, which sets the range size, not the right index (see (see https://github.com/pure-data/pure-data/issues/2868 ). so the message syntax is `range <onset> <range>`, not `range <from> <to>`:
> 
> https://github.com/pure-data/pure-data/blob/208fd75ec24d381dddada34224dc40ee1ed73238/src/x_text.c#L1329-L1332
> 
> this was not well explained in the [text search] help for older pd version and https://github.com/ben-wes/pure-data/commit/588b125c568715404a3d97b37597d6be8da56d0a tried to clarify things a bit - but it might still not match intuitive expectations.
> 
> cheers,
> ben
> ---
> [email protected] - the Pure Data mailinglist
> https://lists.iem.at/hyperkitty/list/[email protected]/message/56MBIVGA7H2ZXKIT3ZSWE3WWE6F2KZGV/
> 
> To unsubscribe send an email to [email protected] mailing list
> UNSUBSCRIBE and account-management -> https://lists.iem.at/
> 


---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/BWUYT4GF22W26MEFOGGVE27B5GC2GTXU/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/