[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56103: [PATCH] whitespace: Redraw if indentation or line length chan
From: |
Richard Hansen |
Subject: |
bug#56103: [PATCH] whitespace: Redraw if indentation or line length changes |
Date: |
Mon, 20 Jun 2022 01:44:46 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 |
Attached patch:
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.
0001-whitespace-Redraw-if-indentation-or-line-length-chan.patch
Description: Text Data
OpenPGP_signature
Description: OpenPGP digital signature
- bug#56103: [PATCH] whitespace: Redraw if indentation or line length changes,
Richard Hansen <=