Fork me on GitHub
#editors
<
2015-07-10
>
cfleming08:07:17

Am I correct in thinking that in Emacs, only slurp works with strings, not barf?

cfleming08:07:59

Paredit is telling me Invalid context for command paredit-backward-barf-sexp in a string - I'd assumed both would work.

malabarba08:07:19

@cfleming: Yes, you're correct

cfleming08:07:35

@malabarba: Thanks, that seems odd.

malabarba08:07:47

Yeah, don't know why it's like that. But There are other ways to spit something out of a string with paredit

cfleming08:07:58

And Splice works in strings as well, it seems

malabarba08:07:31

What I usually do, is call paredit-split-sexp before the thing I wanted to barf

malabarba08:07:46

which divides into two strings

malabarba08:07:51

and tghen splice it out of the string

cfleming08:07:10

Ok, I think I'll implement both, then - I can't see a good reason not to.

bozhidar14:07:07

@cfleming: play with smartparens a bit as well; in recent years many Emacs users switched over

bozhidar14:07:29

you might get some good ideas there

cfleming17:07:50

@bozhidar: Yeah, I’m planning to check that out, thanks. I particularly like the grouping (i.e. moving map key/val together) etc.

martinklepsch21:07:35

For beginners Nightcode is sooo cool!

malabarba21:07:08

@cfleming wait, smartparens does that? Sounds sweet