Function: helpful-key
helpful-key is an autoloaded, interactive and byte-compiled function
defined in helpful.el.
Signature
(helpful-key KEY-SEQUENCE)
Documentation
Show help for interactive command bound to KEY-SEQUENCE.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/helpful-20250408.334/helpful.el
;;;###autoload
(defun helpful-key (key-sequence)
"Show help for interactive command bound to KEY-SEQUENCE."
(interactive
(list (read-key-sequence "Press key: ")))
(let ((sym (key-binding key-sequence)))
(cond
((null sym)
(user-error "No command is bound to %s"
(key-description key-sequence)))
((commandp sym t)
(helpful--update-and-switch-buffer sym t))
(t
(user-error "%s is bound to %s which is not a command"
(key-description key-sequence)
sym)))))