Function: nrepl--connection-eval-params

nrepl--connection-eval-params is a byte-compiled function defined in nrepl-client.el.

Signature

(nrepl--connection-eval-params CONNECTION)

Documentation

Extra eval-request params contributed by CONNECTION's client.

nrepl-extra-eval-params-function is local to the connection buffer, while eval requests are assembled in the originating source buffer (whose file and position they carry), so the lookup must target CONNECTION explicitly.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/nrepl-client.el
(defun nrepl--connection-eval-params (connection)
  "Extra eval-request params contributed by CONNECTION's client.
`nrepl-extra-eval-params-function' is local to the connection buffer, while
eval requests are assembled in the originating source buffer (whose file and
position they carry), so the lookup must target CONNECTION explicitly."
  (when-let* ((buffer (cond ((buffer-live-p connection) connection)
                            ((stringp connection) (get-buffer connection))))
              (f (buffer-local-value 'nrepl-extra-eval-params-function buffer)))
    (funcall f)))