Function: hywiki-maybe-dehighlight-between-references
hywiki-maybe-dehighlight-between-references is a byte-compiled
function defined in hywiki.el.
Signature
(hywiki-maybe-dehighlight-between-references)
Documentation
Dehighlight any non-Org link HyWiki page#section between point.
If in a programming mode, must be within a comment or string. Use
hywiki-word-face to dehighlight.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
(defun hywiki-maybe-dehighlight-between-references ()
"Dehighlight any non-Org link HyWiki page#section between point.
If in a programming mode, must be within a comment or string. Use
`hywiki-word-face' to dehighlight."
(cond ((hproperty:overlay-range (point) 'face hywiki-word-face)
(hproperty:but-clear-all-in-list
(hproperty:but-get-all-in-region (point) (1+ (point))
'face hywiki-word-face)))
((and (nth 0 hywiki--buttonize-range)
(nth 1 hywiki--buttonize-range))
(hproperty:but-clear-all-in-list
(hproperty:but-get-all-in-region
(nth 0 hywiki--buttonize-range)
(nth 1 hywiki--buttonize-range)
'face hywiki-word-face))))
(cond ((cl-destructuring-bind (start end)
(hywiki-at-range-delimiter)
(when (and start end)
(save-excursion
(goto-char (1+ start))
(and (hproperty:overlay-range (point) 'face hywiki-word-face)
(equal (hywiki-referent-exists-p :range)
'(nil nil nil))
;; non-existing wikiword
(hywiki-maybe-dehighlight-on-reference)))
t)))
((looking-at "[ \t\n\r\f]")
(hywiki-maybe-dehighlight-off-reference)
(hywiki-maybe-dehighlight-on-reference))))