Function: cider-load-file-request

cider-load-file-request is a byte-compiled function defined in cider-client.el.

Signature

(cider-load-file-request FILE-CONTENTS FILE-PATH FILE-NAME &key CONNECTION CALLBACK)

Documentation

Perform the nREPL "load-file" op.

FILE-CONTENTS, FILE-PATH and FILE-NAME are details of the file to be loaded. If CONNECTION is nil, use cider-current-repl. If CALLBACK is nil, use cider-load-file-handler.

This is the keyword-argument form; cider-request:load-file is the legacy positional shim retained for backward compatibility.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-client.el
(cl-defun cider-load-file-request (file-contents file-path file-name &key connection callback)
  "Perform the nREPL \"load-file\" op.
FILE-CONTENTS, FILE-PATH and FILE-NAME are details of the file to be
loaded.  If CONNECTION is nil, use `cider-current-repl'.  If CALLBACK
is nil, use `cider-load-file-handler'.

This is the keyword-argument form; `cider-request:load-file' is the legacy
positional shim retained for backward compatibility."
  (cider-nrepl-send-request `("op" "load-file"
                              "file" ,file-contents
                              "file-path" ,file-path
                              "file-name" ,file-name
                              ;; Honor the print settings (notably `cider-print-quota')
                              ;; so a huge value from the last form doesn't flood the
                              ;; echo area and freeze Emacs, matching `eval' requests.
                              ,@(cider--nrepl-pr-request-plist))
                            (or callback
                                (cider-load-file-handler (current-buffer)))
                            connection))