Function: hbdata:instance-next
hbdata:instance-next is a byte-compiled function defined in hbdata.el.
Signature
(hbdata:instance-next NAME-KEY)
Documentation
Return string for the next higher button instance number after NAME-KEY's.
Return nil if NAME-KEY is nil.
Given name, return ':2'. Given name:2, return ':3'.
This does not search any buffer for other instances; it uses the NAME-KEY string literally, so it must include any instance number to increment.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hbdata.el
(defun hbdata:instance-next (name-key)
"Return string for the next higher button instance number after NAME-KEY's.
Return nil if NAME-KEY is nil.
Given `name', return ':2'. Given `name:2', return ':3'.
This does not search any buffer for other instances; it uses the
NAME-KEY string literally, so it must include any instance number
to increment."
(and name-key
(if (string-match
(concat (regexp-quote hbut:instance-sep) "[0-9]+$") name-key)
(concat hbut:instance-sep
(int-to-string
(1+ (string-to-number
(substring name-key (1+ (match-beginning 0)))))))
":2")))