diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-06-30 13:20:33 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-06-30 13:20:33 -0400 |
commit | 15b2138719b34083967001c3903e7560d5e0947c (patch) | |
tree | b37d992e6f31140c051fc2b6bae6fb84f92addb6 /test/lisp/emacs-lisp | |
parent | 77e99dcacb57cae558f833334a8367fbc9b4fd8a (diff) | |
download | emacs-15b2138719b34083967001c3903e7560d5e0947c.tar.gz emacs-15b2138719b34083967001c3903e7560d5e0947c.tar.bz2 emacs-15b2138719b34083967001c3903e7560d5e0947c.zip |
(syntax-wholeline-max): New var
Try and reduce the pain caused by font-lock and syntax-propertize's
wholeline-based operation in buffers made up of a few very long lines
(bug#45898).
* lisp/emacs-lisp/syntax.el (syntax-wholeline-max): New var.
(syntax--lbp): New function.
(syntax-propertize-wholelines): Use it.
* lisp/jit-lock.el (jit-lock--antiblink-post-command): Use `syntax--lbp`.
* lisp/font-lock.el (font-lock-extend-region-wholelines): Rewrite,
using `syntax-propertize-wholelines`.
Diffstat (limited to 'test/lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions