Function: hbdata:ibut-instance-next
hbdata:ibut-instance-next is a byte-compiled function defined in
hbdata.el.
Signature
(hbdata:ibut-instance-next NAME-KEY)
Documentation
Given NAME-KEY, return next ibutton instance number string for current buffer.
If there is no existing ibutton with NAME-KEY, return t.
With NAME-KEY nil or NAME-KEY name and no existing in-buffer ibutton
with that name, return t.
With NAME-KEY name and highest in-buffer ibutton name:3,
return ':4'.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hbdata.el
(defun hbdata:ibut-instance-next (name-key)
"Given NAME-KEY, return next ibutton instance number string for current buffer.
If there is no existing ibutton with NAME-KEY, return t.
With NAME-KEY nil or NAME-KEY `name' and no existing in-buffer ibutton
with that name, return t.
With NAME-KEY `name' and highest in-buffer ibutton `name:3',
return ':4'."
(if (null name-key)
t
(let ((lbl-instance (hbdata:ibut-instance-last name-key)))
(if lbl-instance
(concat hbut:instance-sep (int-to-string (1+ lbl-instance)))
t))))