Subject: Re: bug#66394: 29.1; Make register-read-with-preview more useful

From: Thierry Volpiatto <[email-masked]>
Date: Thu, 26 Oct 2023 06:17:07 +0000

Michael Heerdegen <[email-masked]> writes:

> Thierry Volpiatto <[email-masked]> writes:
>
>> Not sure to understand what you want to do here.
>
> Maybe it's easier if I post a patch.  Will try to do this tomorrow.

Yes, not sure to understand what you want to do.

> What I want to do is that `register-read-with-preview' accepts another
> argument, a predicate, that is used to filter the registers to be
> included in the preview.

Why do you need another argument as long as you use `this-command`?
You can use e.g. (pcase this-command ('foo #'foo-p) etc...)
Isn't it?

-- 
Thierry