Function: ibtypes::hywiki-word
ibtypes::hywiki-word is a byte-compiled function defined in
hibtypes.el.
Signature
(ibtypes::hywiki-word)
Documentation
When on a non-existing HyWikiWord, create it and display its referent.
A call to (hywiki-active-in-current-buffer-p) must return non-nil for this to activate.
If the associated HyWiki referent is a page, create it automatically unless it is the first HyWiki page to be created, in which case, prompt the user whether to create it, to prevent any unexpected HyWiki use.
Existing HyWikiWords are handled by the implicit button type
hywiki-existing-word.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hibtypes.el
;;; ========================================================================
;;; Creates and displays personal wiki pages and sections with auto-wikiword links
;;; ========================================================================
(defib hywiki-word ()
"When on a non-existing HyWikiWord, create it and display its referent.
A call to (hywiki-active-in-current-buffer-p) must return non-nil
for this to activate.
If the associated HyWiki referent is a page, create it automatically
unless it is the first HyWiki page to be created, in which case,
prompt the user whether to create it, to prevent any unexpected HyWiki
use.
Existing HyWikiWords are handled by the implicit button type
`hywiki-existing-word'."
(when (hywiki-active-in-current-buffer-p)
(let* ((wikiword-start-end (hywiki-highlight-word-get-range))
(wikiword (nth 0 wikiword-start-end))
(start (nth 1 wikiword-start-end))
(end (nth 2 wikiword-start-end)))
(when wikiword
(unless (or (ibtypes::pathname-line-and-column)
(ibtypes::pathname))
(ibut:label-set wikiword start end)
(hact 'hywiki-word-create-and-display wikiword))))))