Skip to content

Use (bounds-of-thing-at-point) for word detection#41

Merged
akicho8 merged 4 commits intoakicho8:masterfrom
johannes-mueller:symbol-at-point
Aug 9, 2024
Merged

Use (bounds-of-thing-at-point) for word detection#41
akicho8 merged 4 commits intoakicho8:masterfrom
johannes-mueller:symbol-at-point

Conversation

@johannes-mueller
Copy link
Contributor

Fix #40

This changes the behavior when (use-region-p). I have to admit that I don't fully understand the use case for using it with region. My understanding was, that the operation should be done on all the symbols in the region, which is what is done now. That means that string-inflection-erase-chars-when-region is no longer needed.

I am not sure if this breaks any use cases. If yes, it would be a good thing to document those in unit tests that don't use (string-inflection-get-current-word) for testing as that is more an implementation detail.

@akicho8 akicho8 merged commit fcd4708 into akicho8:master Aug 9, 2024
@johannes-mueller johannes-mueller deleted the symbol-at-point branch August 10, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

string-inflection-get-current-word is not mode aware

2 participants