-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using this-command for selectrum-repeat is unreliable #98
Comments
Maybe we can just save every command in |
Yes, that sounds reasonable. Thank you for the report. |
In Emacs 28 there will be |
Another this command 💩 |
Yes, but it makes sense because this is a value you just had no access to before. |
I guess it makes some sense. But still - the design around this-command feels fundamentally flawed. |
Yes, all those this/that/last commands are hard to get right... |
Oh, I got the name wrong above, too 😆 It will be called |
🙈 |
I think that name is actually a good choice, less confusing and pretty intuitive. |
Okay, that's actually pretty helpful. I seem to recall spending several hours trying to work around the problem you pointed out with your I've found the previous issue, which has more details and examples: #219 |
For example after
read-string
,this-command
isexit-minibuffer
. You can call the following command to test this:That means any
completing-read
called afterread-string
will saveexit-minibuffer
asselectrum--last-command
but it should have savedexample-command
. This breaksselectrum-repeat
and also other commands which want to make use ofselectrum--last-command
.The text was updated successfully, but these errors were encountered: