Function: helpful-key

helpful-key is an interactive and natively compiled function defined in helpful.el.

Signature

(helpful-key KEY-SEQUENCE)

Documentation

Show help for interactive command bound to KEY-SEQUENCE.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/mvfc1hll8a1f23ivm3qmzj4bn64jr3x7-emacs-packages-deps/share/emacs/site-lisp/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)))))