Function: cider--print-option

cider--print-option is a byte-compiled function defined in cider-client.el.

Signature

(cider--print-option NAME PRINTER)

Documentation

Convert the generic NAME to its PRINTER specific variant.

E.g. pprint's right-margin would become width for fipp. The function is useful when you want to generate dynamically print options.

NAME can be a string or a symbol. PRINTER has to be a symbol. The result will be a string.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-client.el
(defun cider--print-option (name printer)
  "Convert the generic NAME to its PRINTER specific variant.
E.g. pprint's right-margin would become width for fipp.
The function is useful when you want to generate dynamically
print options.

NAME can be a string or a symbol.  PRINTER has to be a symbol.
The result will be a string."
  (let* ((name (cider-maybe-intern name))
         (result (cdr (assoc printer (cadr (assoc name cider--print-options-mapping))))))
    (symbol-name (or result name))))