Function: helpful--format-symbol
helpful--format-symbol is a natively compiled function defined in
helpful.el.
Signature
(helpful--format-symbol SYM)
Documentation
Format symbol as a string, escaping as necessary.
Source Code
;; Defined in /nix/store/mvfc1hll8a1f23ivm3qmzj4bn64jr3x7-emacs-packages-deps/share/emacs/site-lisp/elpa/helpful-20250408.334/helpful.el
(defun helpful--format-symbol (sym)
"Format symbol as a string, escaping as necessary."
;; Arguably this is an Emacs bug. We should be able to use
;; (format "%S" sym)
;; but that converts foo? to "foo\\?". You can see this in other
;; parts of the Emacs UI, such as ERT.
(s-replace " " "\\ " (format "%s" sym)))