Function: cider-repl--history-read

cider-repl--history-read is a byte-compiled function defined in cider-repl.el.

Signature

(cider-repl--history-read FILENAME)

Documentation

Read history from FILENAME and return it.

It does not yet set the input history.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-repl.el
(defun cider-repl--history-read (filename)
  "Read history from FILENAME and return it.
It does not yet set the input history."
  (if (file-readable-p filename)
      (with-temp-buffer
        (insert-file-contents filename)
        (when (> (buffer-size (current-buffer)) 0)
          (read (current-buffer))))
    '()))