]> git.eshelyaron.com Git - emacs.git/commitdiff
Run substitute-command-keys on shortdoc section headings
authorStefan Kangas <stefan@marxist.se>
Wed, 28 Oct 2020 13:46:43 +0000 (14:46 +0100)
committerStefan Kangas <stefan@marxist.se>
Wed, 28 Oct 2020 13:46:43 +0000 (14:46 +0100)
* lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Run
substitute-command-keys on section headings before displaying.

lisp/emacs-lisp/shortdoc.el

index 39ba7ee6dbadaf5e149d36c53f3da221957cb491..1231e799eddb1f2dd417a318e2a09fcb252f9fb9 100644 (file)
@@ -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))