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

Add customizable behavior allowing backward-delete of blank sexps #969

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timor
Copy link

@timor timor commented Mar 25, 2019

This allows deleting empty sexps not only when they are completely empty (closing delimiter follows immediately after opening delimiter), but also if they only consist of white-space.

This is useful for modes where white-space is mandatory after/before delimiters, to get the same behavior for deleting empty sexps.

This also changes the return value of sp-point-in-blank-sexp to
return the beginning and ending positions of the enclosing regexp.

This also changes the return value of `sp-point-in-blank-sexp` to
return the beginning and ending positions of the enclosing regexp.
@Fuco1
Copy link
Owner

Fuco1 commented Mar 28, 2019

Should we also want this in the situation where ( |) and we hit C-d? That is the behaviour in strict mode that works with (|).

@timor
Copy link
Author

timor commented Mar 28, 2019

Should we also want this in the situation where ( |) and we hit C-d? That is the behaviour in strict mode that works with (|).

I thought about that, but since I never had that use case, I did not implement it. Should be straightforward, though. Shall I add it?

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

Successfully merging this pull request may close these issues.

None yet

2 participants