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

The level in paired open-parenthesis and closed-parenthesis is not identical. #1612

Open
sakurawald opened this issue Nov 19, 2024 · 2 comments

Comments

@sakurawald
Copy link
Contributor

If you current cursor is on close parenthesis, then the result of M-x paredit-slurp <ret> is as expected.

image

image

However, if your cursor is on open parenthesis, then the result is different from the previous result.

What i expected is that: the cursor on open parenthesis, on closed parenthesis and between open parenthesis and closed parenthesis should mean the same list.

However, the actual result is that, if the cursor is on close parenthesis and between open parenthesis and closed parenthesis, then it means the same list. But if the cursor is on open parenthesis, then it means the different list.

@sakurawald
Copy link
Contributor Author

sakurawald commented Nov 19, 2024

The case, if the cursor is on open parenthesis, input M-x paredit-slurp <ret>

image
image

@sakurawald
Copy link
Contributor Author

A similar issue is here, also related to the identity of open parenthesis and closed parenthesis.

I guess this is something about the parenthesis matching algorithm, it seems the open parenthesis is simply ignored, and use the closed parenthesis to match it. Not very sure about this.

#1591

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

No branches or pull requests

1 participant