-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
* layers/+web/eww/funcs.el: Fix eww transient state key bindings #16730
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide some more details? I'm not able to reproduce the issue you described. I added the eww
layer, started a new Emacs, and didn't see any warnings at startup, or when I started eww
, or when I started using the transient state.
5bf28bc
to
ba9f7b4
Compare
@bcc32 Could you try the eww layer with emacs-28 branch? It constantly reproducible on Emacs 28. |
I tried emacs-29, this issue is also reproducible. |
Hmm, I think I know what this is. I can reproduce the issue you describe if I have a running Spacemacs, and I add the eww layer, and then I press If that's what we're talking about, this is not really a bug in the eww layer, I would argue. (Otherwise we would have to fix every single callsite of
If we're talking about the same thing, then I think this more a bug in |
@bcc32 It's not same as I described issue.
|
Can you give a full config to reproduce? I of course already tried adding eww to my layers list (and I'm already using the spacemacs-base distribution). |
@bcc32 The configuration is the default content of
I tried emacs-28/29/30 on Ubuntu 20.04, the warning messages will be displayed on startup,
Please keep the |
I'm not sure any other additional layers/package may hide this issue. |
Ohhhh. You're saying to make Indeed, if the packages like |
I pushed a new proposed solution to your branch. It attempts to be more general and reusable across other transient states, while requiring minimal duplicated code (such as regexes to match each key hint) in each transient state definition. Unfortunately it doesn't work for the evil-mode key bindings here, but if I'm understanding your original comment correctly, the evil mode keys are actually never missing. (In fact, spacemacs-bootstrap requires evil so I don't think basically anything else in Spacemacs supports working without loading evil-mode). So, I did not attempt to handle the formatting in that case. |
@bcc32 Thank you, and the the changes are more elegant. And the transient status menu has a
|
How to deal the dynamic loaded feature? I mean when the transient state menu started, a package (eg: zoom-frm) did not been loaded yet, but some how the package was loaded for some reason, then re-run the transient state menu, the menu items should be presented. |
Warning message happened when enable the
eww
layer:It caused by the transient state for eww has post-defined keys, but the keys not available during transient hints initilizating.
The is PR will fix the issue by define the keys with
identify
function first, then replay them with the real keys.