-
Notifications
You must be signed in to change notification settings - Fork 281
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
evil-ex-shortcut-map broken by #1944 #1949
Comments
Thanks for the bug report @Deewiant. This is an area of the codebase @axelf4 is more familiar with than me, having made a lot of changes here a year and a bit ago. My branch does appear to fix the problem, and doesn't break any tests, but @axelf4 if you can take a look and lmk if that looks ok to you, I'd prefer to wait for your 👍 before merging. edit - ah it does now throw an error. back to the drawing board... |
I pushed a potential WIP fix to axelf4/evil/fix-ex-shortcuts. Have not tested it enough yet, may have regressed on the original issue. |
Ah, I also pushed something. Much less change than yours, but works for both cases. Probably less correct. If you're happy to @axelf4 , I'll leave you to close this issue with either / something else. |
In the interests of urgency, I've merged, but @axelf4 feel free to revert if you find a better fix. Cheers |
Issue type
Environment
Emacs version: GNU Emacs 29.4.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2024-06-27
Operating System: Ubuntu Jammy (22.04)
Evil version: Evil version 1.15.0
Evil installation type: MELPA
Graphical/Terminal: X
Tested in a
make emacs
session (see CONTRIBUTING.md): YesReproduction steps
make emacs
(define-key evil-ex-shortcut-map "abc" #'(lambda () (interactive) (message "hello")))
:abc
(no<RET>
)Expected behavior
hello
at the bottom of the screen and in the*Messages*
bufferActual behavior
Unknown command: ‘abc’
at the bottom of the screen and in the*Messages*
bufferFurther notes
This was broken by #1944: It works in commit ebc7854 (Account for large values of scroll-margin in evil-window-top+bottom) but not in commit 35fe630 (Call evil--ex-update one last time in minibuffer teardown, 2024-12-14).
My guess is that the
(exit-minibuffer)
call atevil/evil-ex.el
Line 429 in cc1a7bd
evil-ex-teardown
.The text was updated successfully, but these errors were encountered: