Function: whitespace--variable-watcher

whitespace--variable-watcher is a byte-compiled function defined in whitespace.el.gz.

Signature

(whitespace--variable-watcher SYMBOL NEWVAL OP BUFFER)

Documentation

Variable watcher that calls font-lock-flush for BUFFER.

Source Code

;; Defined in /usr/src/emacs/lisp/whitespace.el.gz
(defun whitespace--variable-watcher (_symbol _newval _op buffer)
  "Variable watcher that calls `font-lock-flush' for BUFFER."
  (when buffer
    (with-current-buffer buffer
      (when whitespace-mode
        (font-lock-flush)))))