Function: erc-button-press-button
erc-button-press-button is an interactive and byte-compiled function
defined in erc-button.el.gz.
Signature
(erc-button-press-button &rest IGNORE)
Documentation
Check text at point for a callback function.
If the text at point has a erc-callback property,
call it with the value of the erc-data text property.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-button.el.gz
(defun erc-button-press-button (&rest _ignore)
"Check text at point for a callback function.
If the text at point has a `erc-callback' property,
call it with the value of the `erc-data' text property."
(declare (advertised-calling-convention () "28.1"))
(interactive)
(let* ((data (get-text-property (point) 'erc-data))
(fun (get-text-property (point) 'erc-callback)))
(unless fun
(message "No button at point"))
(when (and fun (symbolp fun) (not (fboundp fun)))
(error "Function %S is not bound" fun))
(apply fun data)))