Function: help--docstring-quote

help--docstring-quote is a byte-compiled function defined in help.el.gz.

Signature

(help--docstring-quote STRING)

Documentation

Return a doc string that represents STRING.

The result, when formatted by substitute-command-keys, should equal STRING.

Source Code

;; Defined in /usr/src/emacs/lisp/help.el.gz
(defun help--docstring-quote (string)
  "Return a doc string that represents STRING.
The result, when formatted by `substitute-command-keys', should equal STRING."
  (replace-regexp-in-string "['\\`‘’]" "\\\\=\\&" string))