       :else
       (println error))))
 
+;; --------------------
+;; REPL specials
+
 (defn- compiler-state-backup []
   {:st     @st
    :loaded @cljs/*loaded*})

;; =============================================================================
;; REPL plumbing

(defn- calc-parinfer-opts [text pos]
  (let [x (.lastIndexOf text "\n")]
    #js {:cursorX    (- pos (inc x))

  (load-core-analysis-caches repl?)
  (deps/index-upstream-foreign-libs))

;; --------------------
;; Autocompletion

(defn- drop-macros-suffix
