Function: helpful--format-value
helpful--format-value is a byte-compiled function defined in
helpful.el.
Signature
(helpful--format-value SYM VALUE)
Documentation
Format VALUE as a string.
Source Code
;; Defined in ~/.emacs.d/elpa/helpful-20250408.334/helpful.el
(defun helpful--format-value (sym value)
"Format VALUE as a string."
(cond
(helpful--view-literal
(helpful--syntax-highlight (helpful--pretty-print value)))
;; Allow strings to be viewed with properties rendered in
;; Emacs, rather than as a literal.
((stringp value)
value)
;; Allow keymaps to be viewed with keybindings shown and
;; links to the commands bound.
((keymapp value)
(helpful--format-keymap value))
((helpful--hook-p sym value)
(helpful--format-hook value))
(t
(helpful--pretty-print value))))