Fork me on GitHub
#cider
<
2017-01-14
>
luxbock19:01:37

I'm trying to make a Cider eval-handler for inserting pretty-printed code into a buffer, so the result I get from my evaluation comes back as a string (that contains whitespace)

luxbock19:01:09

is there existing functionality in Cider to insert this into the buffer with the whitespace as it exists in the returned string result

luxbock19:01:04

or should I just do the unquoting and character escaping by Emacs's string manipulation functions?

luxbock20:01:15

this seems to work

qqq22:01:45

i can find the cider files for sending an entire buffer and for senting last sexp, how do I send a particular string?

qqq22:01:56

like all I want to do is to send the string "(refresh)"

dottedmag23:01:06

(cider-interactive-eval "(refresh)") works for me

dottedmag23:01:20

Hmm, it was the first time I looked at CIDER code. Looks very pleasant to read.