summaryrefslogtreecommitdiff
path: root/doc/lispref
diff options
context:
space:
mode:
authorRichard Hansen <rhansen@rhansen.org>2022-06-20 09:40:38 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-06-20 09:41:15 +0200
commit1172c7303dbce015d12424739a56bfce00e195b1 (patch)
treef7f099dd6ab7d14bf42222e287bf7f15d1a02f9c /doc/lispref
parent382f7920abcf7df46b5b44462c6c71de54454b0e (diff)
downloademacs-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