Function: helpful--format-value
helpful--format-value is a natively compiled function defined in
helpful.el.
Signature
(helpful--format-value SYM VALUE)
Documentation
Format VALUE as a string.
Source Code
;; Defined in /nix/store/mvfc1hll8a1f23ivm3qmzj4bn64jr3x7-emacs-packages-deps/share/emacs/site-lisp/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))))