title: Get pretty-printed result in Cider-evaluated expression in Emacs
body: <p>I'd like to insert the result of an evaluated Clojure expression directly in my Emacs buffer, in pretty-printed form.</p>
  
  <p>For example, with something like:</p>
  
  <pre><code>    ;; [emacs lisp]
      (insert (nrepl-dict-get (nrepl-sync-request:eval "(range 30)") "value"))
  </code></pre>
  
  <p>I get, in the buffer of interest,</p>
  
  <pre><code>    ;;=&gt;
      (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29)
  </code></pre>
  
  <p>In the past, I've let Clojure pretty-print things for me, as so:</p>
  
  <pre><code>(nrepl-dict-get
    (nrepl-sync-request:eval
      (format "(clojure.core/let [x %s] (with-out-str (clojure.pprint/pprint x)))"
              "(range 30)"))
    "value")
  ;;=&gt;
  "(0\n 1\n 2\n 3\n 4\n 5\n 6\n 7\n 8\n 9\n 10\n 11\n 12\n 13\n 14\n 15\n 16\n 17\n 18\n 19\n 20\n 21\n 22\n 23\n 24\n 25\n 26\n 27\n 28\n 29)\n"
  </code></pre>
  
  <p>However, the <code>"</code> and <code>\n</code> are being inserted escaped; I want them to be inserted unescaped.  In other words, I want the pretty-printed result to be inserted directly without escaping quotes or newlines.  This used to work in earlier versions of Cider and <code>cider-nrepl</code>.</p>