Function: nrepl--eval-request
nrepl--eval-request is a byte-compiled function defined in
nrepl-client.el.
Signature
(nrepl--eval-request INPUT &optional NS LINE COLUMN)
Documentation
Prepare :eval request message for INPUT.
NS provides context for the request.
If LINE and COLUMN are non-nil and current buffer is a file buffer, "line",
"column" and "file" are added to the message.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/nrepl-client.el
(defun nrepl--eval-request (input &optional ns line column)
"Prepare :eval request message for INPUT.
NS provides context for the request.
If LINE and COLUMN are non-nil and current buffer is a file buffer, \"line\",
\"column\" and \"file\" are added to the message."
`("op" "eval"
"code" ,(substring-no-properties input)
,@(when ns `("ns" ,ns))
,@(when cider-enlighten-mode '("enlighten" "true"))
,@(let ((file (or (buffer-file-name) (buffer-name))))
(when (and line column file)
`("file" ,file
"line" ,line
"column" ,column)))))