[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add option COUNT argument to text-property-search functions
From: |
James N . V . Cash |
Subject: |
Re: [PATCH] Add option COUNT argument to text-property-search functions |
Date: |
Fri, 30 Jul 2021 15:55:50 -0400 |
Lars Ingebrigtsen <larsi@gnus.org> writes:
> James N V Cash <james.cash@occasionallycogent.com> writes:
>
>> This allows searching forward for the Nth occurance of the text
>> property, analogously to re-search-forward/backward.
>
> I don't think I've ever registered seeing COUNT used in the wild for
> those functions, and I think it's a design flaw to have them. So I'm
> not in favour of adding those to more functions.
Hah, fair enough! I was discussing something with Protesilaos previously
that would've been made easier by having this support a count (versus
wrapping it in a dotimes), but I certainly can see why you'd want
to avoid adding yet another optional argument.
Re: [PATCH] Add option COUNT argument to text-property-search functions, Eli Zaretskii, 2021/07/30