Function: ibut:at-to-name-p
ibut:at-to-name-p is a byte-compiled function defined in hbut.el.
Signature
(ibut:at-to-name-p &optional IBUT)
Documentation
If point is on an implicit button, optional IBUT, move to the start of its name.
If name is found, leave point after its opening delimiter and set the name and lbl-key properties of IBUT. Return t if name is found, else nil.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hbut.el
(defun ibut:at-to-name-p (&optional ibut)
"If point is on an implicit button, optional IBUT, move to the start of its name.
If name is found, leave point after its opening delimiter and set the name
and lbl-key properties of IBUT. Return t if name is found, else nil."
(let ((opoint (point))
move-flag
name
start)
(when (and (or (ibut:is-p ibut)
(setq ibut (ibut:at-p)))
(setq start (hattr:get ibut 'lbl-start)))
(goto-char start)
(forward-line 0)
(while (search-forward ibut:label-start start t)
(setq move-flag t))
(if move-flag
(progn (setq name (ibut:label-p t nil nil nil t))
(when name
(hattr:set ibut 'name name)
(hattr:set ibut 'lbl-key (ibut:label-to-key name))))
(setq ibut nil)
(goto-char opoint)))
move-flag))