Function: gbut:label-p
gbut:label-p is a byte-compiled function defined in hbut.el.
Signature
(gbut:label-p &optional AS-LABEL START-DELIM END-DELIM POS-FLAG TWO-LINES-FLAG)
Documentation
Return key for the Hyperbole global button label that point is within, else nil.
This is the normalized key form of the explicit button's label.
Assume point is within the first line of any button label. All following arguments are optional. If AS-LABEL is non-nil, return label rather than the key derived from the label. START-DELIM and END-DELIM are strings that override default button delimiters. With POS-FLAG non-nil, return the list of label-or-key, but-start-position, but-end-position. Positions include delimiters. With TWO-LINES-FLAG non-nil, constrain label search to two lines.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hbut.el
(defun gbut:label-p (&optional as-label start-delim end-delim pos-flag two-lines-flag)
"Return key for the Hyperbole global button label that point is within, else nil.
This is the normalized key form of the explicit button's label.
Assume point is within the first line of any button label. All
following arguments are optional. If AS-LABEL is non-nil, return
label rather than the key derived from the label. START-DELIM
and END-DELIM are strings that override default button
delimiters. With POS-FLAG non-nil, return the list of label-or-key,
but-start-position, but-end-position. Positions include
delimiters. With TWO-LINES-FLAG non-nil, constrain label search
to two lines."
(when (equal (hypb:buffer-file-name) (gbut:file))
(hbut:label-p as-label start-delim end-delim pos-flag two-lines-flag)))