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

Slurp breaks structure if quoted. #865

Open
gilch opened this issue Feb 27, 2016 · 1 comment
Open

Slurp breaks structure if quoted. #865

gilch opened this issue Feb 27, 2016 · 1 comment

Comments

@gilch
Copy link

gilch commented Feb 27, 2016

Example:

; '|' is cursor
(1 2 3 '[|] 4 5 6)
; C-0 s
(1 2 3 '[| 4 5 6)

The [ isn't balanced. This is no longer valid structure. What probably should have happened:

(1 2 3 '[| 4] 5 6)

The syntax-quote ``` has the same effect.

Backwards slurp also has problems.
It breaks structure in some cases:

; back slurp a set literal
(1 2 3 #{|} 4 5 6)
; C-9 s
(1 2 #{3 |{} 4 5 6)

This is no longer valid structure. There's an extra {. What probably should have happened:

(1 2 #{3 |} 4 5 6)

Backwards slurping a quoted form simply deletes the quote.

(1 2 3 '[|] 4 5 6)
; C-9 s
(1 2 3 [|] 4 5 6)

What probably should have happened:

(1 2 '[3 |] 4 5 6)
@laurentpetit
Copy link
Member

@thickey do you feel like you could take a look at it?

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

No branches or pull requests

2 participants