mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
text-quoting-style for usage of fn names with ‘’
* lisp/help.el (help--docstring-quote): Don’t assume text-quoting-style is ‘curve’ when generating usage strings for functions whose names contain curved quotes.
This commit is contained in:
parent
b6b2554f8b
commit
b8147621ec
1 changed files with 1 additions and 1 deletions
|
|
@ -1353,7 +1353,7 @@ the help window if the current value of the user option
|
|||
(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))
|
||||
(replace-regexp-in-string "['\\`‘’]" "\\\\=\\&" string))
|
||||
|
||||
;; The following functions used to be in help-fns.el, which is not preloaded.
|
||||
;; But for various reasons, they are more widely needed, so they were
|
||||
|
|
|
|||
Loading…
Reference in a new issue