Function: hbut:map

hbut:map is a byte-compiled function defined in hbut.el.

Signature

(hbut:map BUT-FUNC &optional REGEXP-MATCH INCLUDE-DELIMS)

Documentation

Apply BUT-FUNC to a set of hbuttons in the visible part of the current buffer.

Finds both ebuts and named ibuts that match any optional REGEXP-MATCH
(may be a partial match but must include delimiters).

Any regexp given must have grouping 1 match the label.

BUT-FUNC must take precisely three arguments: the button label, the start position of the delimited button label and its end position (positions include delimiters when INCLUDE-DELIMS is non-nil).

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hbut.el
(defun    hbut:map (but-func &optional regexp-match include-delims)
  "Apply BUT-FUNC to a set of hbuttons in the visible part of the current buffer.
Finds both ebuts and named ibuts that match any optional REGEXP-MATCH
\(may be a partial match but must include delimiters).

Any regexp given must have grouping 1 match the label.

BUT-FUNC must take precisely three arguments: the button label, the start
position of the delimited button label and its end position (positions
include delimiters when INCLUDE-DELIMS is non-nil)."
(sort
 (nconc
  (ebut:map but-func regexp-match include-delims)
  (ibut:map but-func regexp-match include-delims))
 #'string<))