Function: button-label

button-label is a byte-compiled function defined in button.el.gz.

Signature

(button-label BUTTON)

Documentation

Return BUTTON's text label.

This function only works when BUTTON is in the current buffer.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/button.el.gz
(defun button-label (button)
  "Return BUTTON's text label.

This function only works when BUTTON is in the current buffer."
  (if (button--area-button-p button)
      (substring-no-properties (button--area-button-string button))
    (buffer-substring-no-properties (button-start button)
				    (button-end button))))