Function: hywiki-word-dehighlight-in-buffers

hywiki-word-dehighlight-in-buffers is an interactive and byte-compiled function defined in hywiki.el.

Signature

(hywiki-word-dehighlight-in-buffers BUFFERS)

Documentation

Dehighlight HyWikiWords in BUFFERS.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260822.1645/hywiki.el
(defun hywiki-word-dehighlight-in-buffers (buffers)
  "Dehighlight HyWikiWords in BUFFERS."
  (interactive)
  (dolist (buf buffers)
    (with-current-buffer buf
      (save-excursion
        (hywiki-word-remove-completion-at-point)
        (remove-hook 'pre-command-hook      'hywiki-word-store-around-point :local)
        (remove-hook 'post-self-insert-hook 'hywiki-word-highlight-post-self-insert :local)
        (remove-hook 'post-command-hook     'hywiki-word-highlight-post-command :local)
        ;; Display buffer before `normal-mode' triggers possibly
        ;; long-running font-locking
        (sit-for 0)
        ;; Force dehighlighting in buffer with this `let'
        (setq hywiki-buffer-highlighted-state 'h)
        (hywiki-maybe-dehighlight-references))))
  (hywiki-maybe-directory-updated))