Function: insert-text-button

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

Signature

(insert-text-button LABEL &rest PROPERTIES)

Documentation

Insert a button with the label LABEL.

The remaining PROPERTIES arguments form a plist of PROPERTY VALUE pairs, specifying properties to add to the button. In addition, the keyword argument :type may be used to specify a button-type from which to inherit other properties; see define-button-type.

This function is like insert-button, except that the button is actually part of the text instead of being a property of the buffer. Creating large numbers of buttons can also be somewhat faster using insert-text-button.

Also see make-text-button.

Source Code

;; Defined in /usr/src/emacs/lisp/button.el.gz
(defun insert-text-button (label &rest properties)
  "Insert a button with the label LABEL.
The remaining PROPERTIES arguments form a plist of PROPERTY VALUE
pairs, specifying properties to add to the button.
In addition, the keyword argument :type may be used to specify a
`button-type' from which to inherit other properties; see
`define-button-type'.

This function is like `insert-button', except that the button is
actually part of the text instead of being a property of the buffer.
Creating large numbers of buttons can also be somewhat faster using
`insert-text-button'.

Also see `make-text-button'."
  (apply #'make-text-button
	 (prog1 (point) (insert label))
	 (point)
	 properties))