Function: unbuttonize-region
unbuttonize-region is a byte-compiled function defined in
compat-31.el.
Signature
(unbuttonize-region START END)
Documentation
[Compatibility function for unbuttonize-region, defined in Emacs 31.0.50. See
(compat) Emacs 31.0.50' for more details.]
Remove all the buttons between START and END. This removes both text-property and overlay based buttons.
Source Code
;; Defined in ~/.emacs.d/elpa/compat-31.0.0.2/compat-31.el
;;;; Defined in button.el
(compat-defun unbuttonize-region (start end) ;; <compat-tests:buttonize-region>
"Remove all the buttons between START and END.
This removes both text-property and overlay based buttons."
(dolist (o (overlays-in start end))
(when (overlay-get o 'button)
(delete-overlay o)))
(with-silent-modifications
(remove-text-properties start end (button--properties nil nil nil))
(add-face-text-property start end 'button nil)))