Function: button-describe
button-describe is an interactive and byte-compiled function defined
in button.el.gz.
Signature
(button-describe &optional BUTTON-OR-POS)
Documentation
Display a buffer with information about the button at point.
When called from Lisp, pass BUTTON-OR-POS as the button to describe, or a buffer position where a button is present. If BUTTON-OR-POS is nil, the button at point is the button to describe.
Probably introduced at or before Emacs version 28.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/button.el.gz
(defun button-describe (&optional button-or-pos)
"Display a buffer with information about the button at point.
When called from Lisp, pass BUTTON-OR-POS as the button to describe, or a
buffer position where a button is present. If BUTTON-OR-POS is nil, the
button at point is the button to describe."
(interactive "d")
(let* ((help-buffer-under-preparation t)
(button (cond ((integer-or-marker-p button-or-pos)
(button-at button-or-pos))
((null button-or-pos) (button-at (point)))
((overlayp button-or-pos) button-or-pos)))
(props (and button
(mapcar (lambda (prop)
(cons prop (button-get button prop)))
'(type action mouse-action)))))
(when props
(button--describe props)
t)))