diff options
| author | Stefan Monnier | 2014-05-28 23:54:37 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-05-28 23:54:37 -0400 |
| commit | 4d05fe986c0ce9f5c06f9655961e56eb80db7e63 (patch) | |
| tree | 4331d98ad1e074a20a0646639fffb3cf36423e9a /src/alloc.c | |
| parent | 6711a21f1125c0047c56eb266eb374c1ec90a967 (diff) | |
| download | emacs-4d05fe986c0ce9f5c06f9655961e56eb80db7e63.tar.gz emacs-4d05fe986c0ce9f5c06f9655961e56eb80db7e63.zip | |
* lisp/whitespace.el: Use font-lock-flush. Minimize refontifications.
Side benefit: it works without jit-lock.
(whitespace-point--used): New buffer-local var.
(whitespace-color-on): Initialize it and flush it. Use font-lock-flush.
(whitespace-color-off): Use font-lock-flush.
(whitespace-point--used, whitespace-point--flush-used): New functions.
(whitespace-trailing-regexp, whitespace-empty-at-bob-regexp)
(whitespace-empty-at-eob-regexp): Use them.
(whitespace-post-command-hook): Rewrite.
Diffstat (limited to 'src/alloc.c')
0 files changed, 0 insertions, 0 deletions