Function: hlink
hlink is a byte-compiled function defined in hibtypes.el.
Signature
(hlink LINK-ACTYPE LABEL-PREFIX START-DELIM END-DELIM)
Documentation
Call LINK-ACTYPE and use LABEL-PREFIX if point is within an implicit button.
LINK-ACTYPE is the action type and button is prefixed with LABEL-PREFIX. The button must be delimited by START-DELIM and END-DELIM.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hibtypes.el
;;; ========================================================================
;;; Links to Hyperbole button types
;;; ========================================================================
(defun hlink (link-actype label-prefix start-delim end-delim)
"Call LINK-ACTYPE and use LABEL-PREFIX if point is within an implicit button.
LINK-ACTYPE is the action type and button is prefixed with
LABEL-PREFIX. The button must be delimited by START-DELIM and
END-DELIM."
;; Used by e/g/ilink implicit buttons."
(let* ((label-start-end (hbut:label-p t start-delim end-delim t t))
(label-and-file (nth 0 label-start-end))
(start-pos (nth 1 label-start-end))
(end-pos (nth 2 label-start-end))
but-key lbl-key key-file partial-lbl)
(when label-and-file
(setq label-and-file (hlink:parse-label-and-file label-and-file)
partial-lbl (nth 0 label-and-file)
but-key (hbut:label-to-key partial-lbl)
key-file (nth 1 label-and-file)
lbl-key (when but-key (concat label-prefix but-key)))
(ibut:label-set (hbut:key-to-label lbl-key) start-pos end-pos)
(hact link-actype but-key key-file))))