Function: button-get

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

Signature

(button-get BUTTON PROP)

Documentation

Get the property of button BUTTON named PROP.

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-get (button prop)
  "Get the property of button BUTTON named PROP.

This function only works when BUTTON is in the current buffer."
  (cond ((overlayp button)
	 (overlay-get button prop))
	((button--area-button-p button)
	 (get-text-property (cdr button)
			    prop (button--area-button-string button)))
	((markerp button)
	 (get-text-property button prop (marker-buffer button)))
	(t ; Must be a text-property button.
	 (get-text-property button prop))))