Function: hywiki-maybe-highlight-between-references
hywiki-maybe-highlight-between-references is a byte-compiled function
defined in hywiki.el.
Signature
(hywiki-maybe-highlight-between-references)
Documentation
Highlight any non-Org link HyWiki page#section names between point.
If in a programming mode, must be within a comment. Use
hywiki-word-face to highlight. Do not highlight references to
the current page unless they have sections attached.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
(defun hywiki-maybe-highlight-between-references ()
"Highlight any non-Org link HyWiki page#section names between point.
If in a programming mode, must be within a comment. Use
`hywiki-word-face' to highlight. Do not highlight references to
the current page unless they have sections attached."
(cond ((hproperty:overlay-range (point) 'face hywiki-word-face))
((cl-destructuring-bind (word start end)
(hywiki-highlight-word-get-range)
(when (and start end)
(save-excursion
(goto-char start)
(when (hywiki-referent-exists-p word)
;; existing wikiword
(hywiki-maybe-highlight-on-reference)))
t)))
((cl-destructuring-bind (start end)
(hywiki-at-range-delimiter)
(when (and start end)
(save-excursion
(goto-char (1+ start))
(skip-syntax-forward "-" (line-end-position))
(unless (equal (hywiki-referent-exists-p :range)
'(nil nil nil))
;; existing wikiword
(hywiki-maybe-highlight-on-reference)))
t)))
((looking-at "[ \t\n\r\f]")
(hywiki-maybe-highlight-off-reference)
(hywiki-maybe-highlight-on-reference))
(t (hywiki-maybe-highlight-on-reference))))