Function: ibtypes::hywiki-existing-word
ibtypes::hywiki-existing-word is a byte-compiled function defined in
hibtypes.el.
Signature
(ibtypes::hywiki-existing-word)
Documentation
On a HyWikiWord with an existing referent, display the referent.
A call to (hywiki-active-in-current-buffer-p) must return non-nil for this to activate.
See the implicit button type hywiki-word for creation of referents to
not yet existing HyWikiWords.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hibtypes.el
;;; ========================================================================
;;; Activates HyWikiWords with existing referents.
;;; Non-existing HyWikiWords are handled by the (load "hywiki") at a low
;;; priority earlier in this file which defines the `hywiki-word' ibtype.
;;; ========================================================================
(defib hywiki-existing-word ()
"On a HyWikiWord with an existing referent, display the referent.
A call to (hywiki-active-in-current-buffer-p) must return non-nil
for this to activate.
See the implicit button type `hywiki-word' for creation of referents to
not yet existing HyWikiWords."
(when (hywiki-active-in-current-buffer-p)
(cl-destructuring-bind (wikiword start end)
(hywiki-referent-exists-p :range)
(when wikiword
(unless (file-exists-p (hywiki-word-from-reference wikiword))
(if (and start end)
(ibut:label-set wikiword start end)
(ibut:label-set wikiword))
(hact 'link-to-wikiword wikiword))))))