diff options
author | Richard Hansen <rhansen@rhansen.org> | 2022-06-20 09:40:38 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-06-20 09:41:15 +0200 |
commit | 1172c7303dbce015d12424739a56bfce00e195b1 (patch) | |
tree | f7f099dd6ab7d14bf42222e287bf7f15d1a02f9c /doc/lispref | |
parent | 382f7920abcf7df46b5b44462c6c71de54454b0e (diff) | |
download | emacs-1172c7303dbce015d12424739a56bfce00e195b1.tar.gz emacs-1172c7303dbce015d12424739a56bfce00e195b1.tar.bz2 emacs-1172c7303dbce015d12424739a56bfce00e195b1.zip |
whitespace: Redraw if indentation or line length changes
* lisp/whitespace.el (whitespace-color-on): Convert the indentation
matcher from a static regular expression to a function so that changes
to `indent-tabs-mode' and `tab-width' are picked up the next time
`font-lock-flush' runs.
(whitespace--indentation-matcher): The new function matcher.
(whitespace--variable-watcher): New variable watcher that calls
`font-lock-flush' if `whitespace-mode' is enabled for the buffer.
(whitespace--watched-vars): List of variables to watch.
(whitespace-unload-function): Un-watch the variables. (bug#56103).
Diffstat (limited to 'doc/lispref')
0 files changed, 0 insertions, 0 deletions