Function: cider-browse-spec--draw-spec-buffer
cider-browse-spec--draw-spec-buffer is a byte-compiled function
defined in cider-browse-spec.el.
Signature
(cider-browse-spec--draw-spec-buffer BUFFER SPEC SPEC-FORM)
Documentation
Reset contents of BUFFER and draws everything needed to browse the SPEC-FORM.
Display SPEC as a title and uses cider-browse-spec--pprint to display
a more user friendly representation of SPEC-FORM.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-browse-spec.el
(defun cider-browse-spec--draw-spec-buffer (buffer spec spec-form)
"Reset contents of BUFFER and draws everything needed to browse the SPEC-FORM.
Display SPEC as a title and uses `cider-browse-spec--pprint' to display
a more user friendly representation of SPEC-FORM."
(with-current-buffer buffer
(let ((inhibit-read-only t))
(cider--help-setup-xref (list #'cider-browse-spec spec) nil buffer)
(goto-char (point-max))
(insert (cider-font-lock-as-clojure spec) "\n\n")
(insert (cider-browse-spec--pprint-indented spec-form))
(cider--make-back-forward-xrefs)
(current-buffer))))