Function: cider-eval-pprint-menu--read-print-fn

cider-eval-pprint-menu--read-print-fn is a byte-compiled function defined in cider-eval.el.

Signature

(cider-eval-pprint-menu--read-print-fn PROMPT INITIAL-INPUT HISTORY)

Documentation

Read a print function for the pretty-print transient.

PROMPT, INITIAL-INPUT and HISTORY are as for completing-read. A value outside the known printers is treated as a namespace-qualified var name.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-eval.el
;;; Transient menu

;; A transient mirror of `cider-eval-commands-map'.  The eval group is by far
;; CIDER's largest prefix map (~20 commands plus a nested pretty-print map),
;; which makes it the hardest to remember and the biggest beneficiary of a
;; documented, grouped menu.  The existing sub-keys are preserved verbatim,
;; including the C-<letter> duplicates (hidden from the menu), so muscle memory
;; like C-c C-v C-r keeps working unchanged.

(defun cider-eval-pprint-menu--read-print-fn (prompt initial-input history)
  "Read a print function for the pretty-print transient.
PROMPT, INITIAL-INPUT and HISTORY are as for `completing-read'.  A value
outside the known printers is treated as a namespace-qualified var name."
  (completing-read (or prompt "Print function: ")
                   '("pr" "pprint" "orchard" "fipp" "puget" "zprint")
                   nil nil initial-input history))