branch: elpa/helm
commit 24cc8959fbcab17fb5ce1e71ead8fd30950014bb
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    substitute-command-keys in short docs
---
 helm-elisp.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/helm-elisp.el b/helm-elisp.el
index 42cf3358bb..59814e4143 100644
--- a/helm-elisp.el
+++ b/helm-elisp.el
@@ -423,7 +423,8 @@ If SYM is not documented, return \"Not documented\"."
              ;; `documentation' return "\n\n(args...)"
              ;; for CL-style functions.
              (not (string-match-p "^\n\n" doc)))
-        (car (split-string doc "\n"))
+        ;; Some commands specify key bindings in their first line.
+        (substitute-command-keys (car (split-string doc "\n")))
       "Not documented")))
 
 ;;; File completion.

Reply via email to