From b8147621ec91e1ce8e34d55141bb75921dbfc080 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 5 Sep 2015 11:28:54 -0700 Subject: [PATCH] =?utf8?q?text-quoting-style=20for=20usage=20of=20fn=20nam?= =?utf8?q?es=20with=20=E2=80=98=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * 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. --- lisp/help.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/help.el b/lisp/help.el index 2fcb52e2e25..d9b0e187f79 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -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 -- 2.39.2