Function: helpful--format-symbol

helpful--format-symbol is a byte-compiled function defined in helpful.el.

Signature

(helpful--format-symbol SYM)

Documentation

Format symbol as a string, escaping as necessary.

Source Code

;; Defined in ~/.emacs.d/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)))