-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
Fix vi-mode's word-related motions #969
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.
Thanks for the great PR!
It's really good that they added the test.
extensions/vi-mode/word.lisp
Outdated
(t :word)))) | ||
|
||
(defun forward-word-begin (char-type-fn &optional (point (current-point))) | ||
(symbol-macrolet ((point-char (character-at point))) |
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.
This is a very cool way to write, but I am concerned that others will see this and copy it elsewhere.
What about using labels/flet?
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.
Okay, I replaced them with simple flet
s.
Actually, they didn't need symbol macros, I don't know I wrote them with it.
Thank you so much! |
Fix vi-mode's word-related motions, like
e
,E
,w
,W
,b
andB
.The characters consist of
word
is determined by theiskeyword
option, added by #966.