summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2020-10-28 14:46:43 +0100
committerStefan Kangas <stefan@marxist.se>2020-10-28 14:46:43 +0100
commitbd3ecfef8429aaced824286074abc7f77ef0c98f (patch)
tree6999adf628a14880aace5ecf005c1bdde9100530
parent6b3ed2375ba97307905d94db099c5834e4b8e09e (diff)
downloademacs-bd3ecfef8429aaced824286074abc7f77ef0c98f.tar.gz
Run substitute-command-keys on shortdoc section headings
* lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Run substitute-command-keys on section headings before displaying.
-rw-r--r--lisp/emacs-lisp/shortdoc.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el
index 39ba7ee6dba..1231e799edd 100644
--- a/lisp/emacs-lisp/shortdoc.el
+++ b/lisp/emacs-lisp/shortdoc.el
@@ -1075,7 +1075,7 @@ There can be any number of :example/:result elements."
(unless (bobp)
(insert "\n"))
(insert (propertize
- (concat data "\n\n")
+ (concat (substitute-command-keys data) "\n\n")
'face '(variable-pitch (:height 1.3 :weight bold)))))
;; There may be functions not yet defined in the data.
((fboundp (car data))