Skip to content
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

Merged
merged 7 commits into from
Aug 20, 2023
Merged

Conversation

fukamachi
Copy link
Collaborator

Fix vi-mode's word-related motions, like e, E, w, W, b and B.

The characters consist of word is determined by the iskeyword option, added by #966.

Copy link
Member

@cxxxr cxxxr left a 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.

(t :word))))

(defun forward-word-begin (char-type-fn &optional (point (current-point)))
(symbol-macrolet ((point-char (character-at point)))
Copy link
Member

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?

Copy link
Collaborator Author

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 flets.
Actually, they didn't need symbol macros, I don't know I wrote them with it.

@cxxxr cxxxr merged commit dfc8756 into lem-project:main Aug 20, 2023
@cxxxr
Copy link
Member

cxxxr commented Aug 20, 2023

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants