summaryrefslogtreecommitdiff
path: root/doc/lispref/help.texi
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2022-09-10 07:37:36 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-09-10 07:37:36 +0200
commit6cd9e586cc065f02d69c97b23163ec91ccc2b5dd (patch)
tree27fae333c1437be0e05f119593720be3f28f43ca /doc/lispref/help.texi
parent54c3794899ef2d4d88812fb445b6e2acc85a2720 (diff)
downloademacs-6cd9e586cc065f02d69c97b23163ec91ccc2b5dd.tar.gz
New function substitute-quotes
* lisp/help.el (substitute-quotes): New function. (Bug#51040) * doc/lispref/help.texi (Keys in Documentation): Document substitute-quotes. * test/lisp/help-tests.el (help-tests-substitute-quotes): New test. * lisp/cedet/srecode/srt-mode.el (srecode-macro-help): * lisp/cus-theme.el (describe-theme-1): * lisp/emacs-lisp/cl-extra.el (cl--describe-class): * lisp/emacs-lisp/eieio-opt.el (eieio-help-constructor): * lisp/emacs-lisp/package.el (describe-package-1): * lisp/help-fns.el (help-fns--parent-mode, help-fns--var-risky) (help-fns--var-file-local, help-fns--var-bufferlocal) (describe-face): * lisp/help.el (substitute-command-keys): * lisp/progmodes/octave.el (octave-help): Use the new function instead of 'substitute-command-keys'.
Diffstat (limited to 'doc/lispref/help.texi')
-rw-r--r--doc/lispref/help.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lispref/help.texi b/doc/lispref/help.texi
index ac284f745f4..154a7abeb63 100644
--- a/doc/lispref/help.texi
+++ b/doc/lispref/help.texi
@@ -384,6 +384,11 @@ given a special face @code{help-key-binding}, but if the optional
argument @var{no-face} is non-@code{nil}, the function doesn't add
this face to the produced string.
+@defun substitute-quotes string
+This function works like @code{substitute-command-keys}, but only
+replaces quote characters.
+@end defun
+
@cindex advertised binding
If a command has multiple bindings, this function normally uses the
first one it finds. You can specify one particular key binding by