-
Notifications
You must be signed in to change notification settings - Fork 71
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-redirect-digit-argument
removed from evil
#93
Comments
evil-redirect-digit-argument
removed from evil
As a quick solution I've deleted lines 635 and 636, recompiled the evil-org source and restarted Emacs. All is good again. |
Yeah, apologies to evil-org users - I thought my PR would go through another round of cleanup by people more experienced with package development than me before it got merged, where we'd add a more idiomatic way of gracefully retiring a function. For those out of the loop though, evil-redirect-digit-argument was pretty broken: its use in evil-org caused any motion with a 0 in the count argument to fail, per #91. At least #93 is an obvious bug, and not an upstream one that causes your motions to fail silently and makes you comb through keypress parsers for a week! |
@jmmathena Not to worry, things like that happen. Especially when there's so many packages that rely on each other as dependencies. |
This code should fix this issue temporary (fset 'evil-redirect-digit-argument 'ignore) ;; before evil-org loaded
(add-to-list 'evil-digit-bound-motions 'evil-org-beginning-of-line)
(evil-define-key 'motion 'evil-org-mode
(kbd "0") 'evil-org-beginning-of-line) |
Also, update: I'm nearly done with a PR for evil that will remove the
This won't fix the issue with evil-org being broken by the removal of evil-redirect-digit-argument, but it does mean you won't have to futz around with a clunky custom variable. |
I've been using this kludge to avoid the bug while the packages upstream are not fixed (only
|
Solved by #96 |
Issue Somelauw/evil-org-mode#93 finally got solved by PR Somelauw/evil-org-mode#96, workaround code can now be removed
Hi, I get the following error message when I try to execute a command from org-mode:
I think this issue results from the following evil mode change:
emacs-evil/evil#1519
This commit removes the
evil-redirect-digit-argument
function from evil.The text was updated successfully, but these errors were encountered: