feature: the paredit-wrap-around now support to select sexp at point without the need to move point to the beginning of sexp #1708
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pr does improve the
implementation
forparedit-wrap-around
inbuffer-mark-p = nil
branch.The pr contains:
forward-sexp
andbackward-sexp
funciton. (Theend
is where theforward-sexp
point at, thestart
is where thebackward-sexp
point at.)following-space
. (It's handled bybackward-sexp
, after the eval ofbackward-sexp
, thecurrent-point
are guarantee to at the first char of sexp.)first char of sexp
, and move current-point at it. (Now it's more smooth to chain-call functions, the space is inserted there.)open char
,string between open-char and closed-char
andclosed char
as the same form. (Fix issue like: The level in pairedopen-parenthesis
andclosed-parenthesis
is not identical. #1612)Let's asume your current-point is inside the word
second
, theparedit-wrap
can now treat thesecond
as a wholesexp
, without the need to move current-point to the(
orfirst-char of sexp
Before this pr
After this pr