Function: erc-button-remove-old-buttons
erc-button-remove-old-buttons is a byte-compiled function defined in
erc-button.el.gz.
Signature
(erc-button-remove-old-buttons)
Documentation
Remove all existing buttons.
This is called with narrowing in effect, just before the text is
buttonized again. Removing a button means to remove all the properties
that erc-button-add-button adds, except for the face.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-button.el.gz
(defun erc-button-remove-old-buttons ()
"Remove all existing buttons.
This is called with narrowing in effect, just before the text is
buttonized again. Removing a button means to remove all the properties
that `erc-button-add-button' adds, except for the face."
(remove-text-properties
(point-min) (point-max)
'(erc-callback nil
erc-data nil
mouse-face nil
keymap nil))
(erc--restore-important-text-props '(mouse-face)))