-
Notifications
You must be signed in to change notification settings - Fork 272
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
Possible regression when calling evil-collection-*-setup
#750
Comments
Was there a need for de0b62b @condy0919 ? Might be worth reverting if it was just a code cleanup-esque change. |
Sorry, my computer is broken on Sept 15. Could you help fix that? The change is to make CI happy as evil-delay is marked obsolete and CI always complains. |
I suppose the issue is on the quoting of the condition somehow? I struggle a bit to see how this commit could be the issue, but so far, reverting to a commit before that seemed to fix my issues. |
Could you provide a reproducible recipe? I'm using Emacs 30, the latest |
Do you have a setup-hook for (defun layout-foo-rotate-keymaps (_mode mode-keymaps &rest _rest)
"A setup hook"
(evil-collection-translate-key '(normal motion visual operator) mode-keymaps
"p" "h"
(kbd "C-p") (kbd "C-h")
:destructive nil))
(add-hook 'evil-collection-setup-hook #'layout-foo-rotate-keymaps) In your initialization code (+ maybe loading dired) could trigger a It's pretty hard to find a good repro for this because I rely on this setup-hook and translate-key/translate-minor-key in a lot of code; and it seems that the error only triggers if some specific "which packages are already loaded?" conditions that I didn't really investigate too much. At least the PR seems to calm everything down, and removes the deprecation warning by backporting the backwards-compatible macro. Maybe the problem is that all the hook functions in evil-with-delay all share the same name, so that anytime one |
It seems that de0b62b brought a regression
I triggered this by requiring
'profiler
, which in turn triggered theevil-collection-setup
call, which then triggered either the key definition hook or just the normal setup?This error gets triggered by anything that's handled by evil-collection it seems.
In any case, I don't have the issue anymore when I check out 1ad283f so I assume it's a quoting issue in the change to
evil-collection-translate-minor-mode-key
? Couldn't dig more into that, I'm just sticking to a commit that works for now.The text was updated successfully, but these errors were encountered: