Function: ibtypes::doc-id

ibtypes::doc-id is a byte-compiled function defined in hib-doc-id.el.

Signature

(ibtypes::doc-id)

Documentation

Display a document from a local document library given its id.

Ids must be delimited by doc-id-start and doc-id-end and must match the function stored in doc-id-p.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hib-doc-id.el
(defib doc-id ()
  "Display a document from a local document library given its id.
Ids must be delimited by `doc-id-start' and `doc-id-end' and must
match the function stored in `doc-id-p'."
  (unless (bolp)
    (let* ((id-and-pos (hbut:label-p t doc-id-start doc-id-end t))
	   (id (car id-and-pos)))
      (when (funcall doc-id-p id)
	(ibut:label-set id-and-pos)
	(hact 'link-to-doc id)))))