Function: hproperty:but-clear-all

hproperty:but-clear-all is a byte-compiled function defined in hproperty.el.

Signature

(hproperty:but-clear-all &optional REGEXP-MATCH)

Documentation

Remove highlighting from all named Hyperbole buttons in the current buffer.

If REGEXP-MATCH is non-nil, only buttons matching this argument are de-highlighted.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hproperty.el
(defun hproperty:but-clear-all (&optional regexp-match)
  "Remove highlighting from all named Hyperbole buttons in the current buffer.
If REGEXP-MATCH is non-nil, only buttons matching this argument are
de-highlighted."
  (if regexp-match
      (progn (ebut:map (lambda (_lbl start end)
			 (remove-overlays start end 'face hproperty:but-face))
		       regexp-match 'include-delims)
	     (ibut:map (lambda (_lbl start end)
			 (remove-overlays start end 'face hproperty:ibut-face))
		       regexp-match 'include-delims))
    ;; Do across whole buffer
    (remove-overlays nil nil 'face hproperty:but-face)
    (remove-overlays nil nil 'face hproperty:ibut-face)))