[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add option COUNT argument to text-property-search functions
From: |
Protesilaos Stavrou |
Subject: |
Re: [PATCH] Add option COUNT argument to text-property-search functions |
Date: |
Sat, 31 Jul 2021 09:56:11 +0300 |
User-agent: |
Notmuch/0.32.2 (https://notmuchmail.org) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
On 2021-07-31, 00:56 +0300, Dmitry Gutov <dgutov@yandex.ru> wrote:
> On 30.07.2021 22:55, James N. V. Cash wrote:
>> 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.
>
> Could you describe that usage scenario here
The idea is to have a command that moves point. So it could accept a
numeric argument to go to the COUNTth match, like 're-search-forward'.
This came about while experimenting with the new group headings in the
Completions' buffer, where we would like to jump between different
groups of matches in one go (see faces 'completions-group-title',
'completions-group-separator').
I don't have a ready-made recipe for you on 'emacs -Q', as I am not sure
what built-in command makes use of those group headings. Though I can
try to prepare one if you need it.
--
Protesilaos Stavrou
https://protesilaos.com
Re: [PATCH] Add option COUNT argument to text-property-search functions, Eli Zaretskii, 2021/07/30