[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#66394: 29.1; Make register-read-with-preview more useful
From: |
Thierry Volpiatto |
Subject: |
bug#66394: 29.1; Make register-read-with-preview more useful |
Date: |
Fri, 27 Oct 2023 04:24:23 +0000 |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Thierry Volpiatto <thievol@posteo.net> writes:
>
>> 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...)
>
> I doubt all potential uses will use `this-command'.
>
> It's cleaner if the command that knows what it wants passes the
> information via argument than to make the other function derive it
> indirectly from the context (functional style).
It is what I did initially after realizing it is simpler to use
this-command from register-read-with-preview.
> Maybe in the future we might need to pass other predicates as well.
> What when a user wants to add another register command?
You can with the current register-preview.el add a new command and
control filtering of this command.
--
Thierry
signature.asc
Description: PGP signature
- bug#66394: 29.1; Make register-read-with-preview more useful, (continued)
- bug#66394: 29.1; Make register-read-with-preview more useful, Thierry Volpiatto, 2023/10/24
- bug#66394: 29.1; Make register-read-with-preview more useful, Michael Heerdegen, 2023/10/25
- bug#66394: 29.1; Make register-read-with-preview more useful, Thierry Volpiatto, 2023/10/25
- bug#66394: 29.1; Make register-read-with-preview more useful, Michael Heerdegen, 2023/10/26
- bug#66394: 29.1; Make register-read-with-preview more useful, Thierry Volpiatto, 2023/10/26
- bug#66394: 29.1; Make register-read-with-preview more useful, Michael Heerdegen, 2023/10/26
- bug#66394: 29.1; Make register-read-with-preview more useful,
Thierry Volpiatto <=