Manipulating Buttons
These are functions for getting and setting properties of buttons. Often these are used by a button’s invocation function to determine what to do.
Where a button parameter is specified, it means an object referring to a specific button, either an overlay (for overlay buttons), or a buffer-position or marker (for text property buttons). Such an object is passed as the first argument to a button’s invocation function when it is invoked.
Return the position at which button starts.
Return the position at which button ends.
Get the property of button button named prop.
Set button’s prop property to val.
Call button’s
actionproperty (i.e., invoke the function that is the value of that property, passing it the single argument button). If use-mouse-action is non-nil, try to invoke the button’smouse-actionproperty instead ofaction; if the button has nomouse-actionproperty, useactionas normal. If thebutton-dataproperty is present in button, use that as the argument for theactionfunction instead of button.
Return button’s text label.
Return button’s button-type.
Return
tif button has button-type type, or one of type’s subtypes.
Return the button at position pos in the current buffer, or
nil. If the button at pos is a text property button, the return value is a marker pointing to pos.
Set the button-type type’s prop property to val.
Get the property of button-type type named prop.
Return
tif button-type type is a subtype of supertype.
Copyright © 1990-1996, 1998-2021 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
https://www.gnu.org/software/emacs/manual/html_node/elisp/Manipulating-Buttons.html