Function: kbd-key:doc
kbd-key:doc is an interactive and byte-compiled function defined in
hib-kbd.el.
Signature
(kbd-key:doc KEY-SERIES &optional FULL)
Documentation
Show first line of doc for binding of keyboard KEY-SERIES in minibuffer.
With optional prefix arg FULL, display full documentation for command.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hib-kbd.el
(defun kbd-key:doc (key-series &optional full)
"Show first line of doc for binding of keyboard KEY-SERIES in minibuffer.
With optional prefix arg FULL, display full documentation for command."
(interactive "kKey sequence: \nP")
(let* ((keys (kbd-key:normalize key-series))
(cmd (let ((cmd (kbd-key:binding keys)))
(unless (integerp cmd) cmd)))
(doc (and cmd (documentation cmd)))
(end-line))
(cond (cmd
(if doc
(or full
(setq end-line (string-match "[\n]" doc)
doc (substitute-command-keys (substring doc 0 end-line))))
(setq doc (format "No documentation for {%s} %s" key-series (or cmd ""))))
(if (and cmd doc)
(if full
(describe-function cmd)
(message doc))))
((setq doc (hui:menu-doc keys (not full)))
(if full
(hui:menu-help doc)
(message doc)))
(t (hkey-help)))))