Function: help-at-pt-kbd-string

help-at-pt-kbd-string is an autoloaded and byte-compiled function defined in help-at-pt.el.gz.

Signature

(help-at-pt-kbd-string)

Documentation

Return the keyboard help string at point.

If the kbd-help text or overlay property at point produces a string, return it. Otherwise, use the help-echo property. If this produces no string either, return nil.

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/help-at-pt.el.gz
;;;###autoload
(defun help-at-pt-kbd-string ()
  "Return the keyboard help string at point.
If the `kbd-help' text or overlay property at point produces a
string, return it.  Otherwise, use the `help-echo' property.
If this produces no string either, return nil."
  (let ((kbd (help-at-pt-string t))
	(echo (help-at-pt-string)))
    (if (and kbd (not (eq kbd t))) kbd echo)))