Am I correct in thinking that in Emacs, only slurp works with strings, not barf?
Paredit is telling me Invalid context for command paredit-backward-barf-sexp in a string - I'd assumed both would work.
@cfleming: Yes, you're correct
@malabarba: Thanks, that seems odd.
Yeah, don't know why it's like that. But There are other ways to spit something out of a string with paredit
And Splice works in strings as well, it seems
exactly
What I usually do, is call paredit-split-sexp
before the thing I wanted to barf
which divides into two strings
Right.
and tghen splice it out of the string
Ok, I think I'll implement both, then - I can't see a good reason not to.
@cfleming: play with smartparens a bit as well; in recent years many Emacs users switched over
you might get some good ideas there
@bozhidar: Yeah, I’m planning to check that out, thanks. I particularly like the grouping (i.e. moving map key/val together) etc.
For beginners Nightcode is sooo cool!
@cfleming wait, smartparens does that? Sounds sweet