You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symptom
The paredit API treats empty sequences as special.
When the zipper is at an empty sequence (because we can't be in an empty sequence) we slurp into that sequence.
The paredit API deems a sequence with #_uneval nodes empty.
I don't think it should.
Because of #256, slurp fns had to be rewritten. During rewriting:
- address design flaw by deprecating existing `slurp` fns and adding
replacement `slurp-`*`-into` fns (closes#339)
- stop adding space char when preserving slurped newlines (closes#345)
- review ambiguous `-slurp-`*-`fully` fn behaviour (closes#341)
- when slurping, don't consider a node with `#_` uneval nodes
empty (closes#338)
- don't throw on rewrite-clj parseable but invalid clojure
`{:a}` (closes#336)
- slurping forward fully no longer throws when slurping into an empty
seq that is last item in a seq (closes#335)
- slurping backward at empty-seq at start of seq no longer
throws (closes#334)
- slurp forward now slurps when at empty-seq at end of seq (closes#333)
Version
1.1.49
Platform
All
Symptom
The paredit API treats empty sequences as special.
When the zipper is at an empty sequence (because we can't be in an empty sequence) we slurp into that sequence.
The paredit API deems a sequence with
#_uneval
nodes empty.I don't think it should.
Reproduction
Actual behavior
;; => "[#_uneval 2]"
Expected behavior
Should be a no-op because the sequence is not empty.
;; => "[#_uneval] 2"
To slurp into a non-empty sequence we navigate into it:
Diagnosis
Closely related to #336.
Action
Working on it.
The text was updated successfully, but these errors were encountered: