Function: hywiki-maybe-dehighlight-references

hywiki-maybe-dehighlight-references is an autoloaded, interactive and byte-compiled function defined in hywiki.el.

Signature

(hywiki-maybe-dehighlight-references &optional REGION-START REGION-END)

Documentation

Dehighlight any highlighted HyWiki page names in a HyWiki buffer/region.

With optional REGION-START and REGION-END positions (active region interactively), limit dehighlighting to the region.

Does nothing if either hywiki-buffer-highlighted-state is set to ='d or a call to hywiki-active-in-current-buffer-p at point returns non-nil.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
;;;###autoload
(defun hywiki-maybe-dehighlight-references (&optional region-start region-end)
  "Dehighlight any highlighted HyWiki page names in a HyWiki buffer/region.
With optional REGION-START and REGION-END positions (active region
interactively), limit dehighlighting to the region.

Does nothing if either `hywiki-buffer-highlighted-state' is set to \='d
or a call to `hywiki-active-in-current-buffer-p' at point returns non-nil."
  (interactive (when (use-region-p) (list (region-beginning) (region-end))))
  (unless (or (eq hywiki-buffer-highlighted-state 'd)
	      (hywiki-active-in-current-buffer-p))
    (hproperty:but-clear-all-in-list
     (hproperty:but-get-all-in-region
      (if (markerp region-start)
	  (if (marker-position region-start)
	      region-start
	    (point-min))
	(or region-start (point-min)))
      (if (markerp region-end)
	  (if (marker-position region-end)
	      region-end
	    (point-max))
	(or region-end (point-max)))
      'face hywiki-word-face))
    (unless (or region-start region-end)
      (setq hywiki-buffer-highlighted-state 'd))))