]> git.eshelyaron.com Git - emacs.git/commit
Simplified and improved heuristic for long lines detection.
authorGregory Heytings <gregory@heytings.org>
Tue, 19 Jul 2022 21:21:40 +0000 (21:21 +0000)
committerGregory Heytings <gregory@heytings.org>
Tue, 19 Jul 2022 21:34:09 +0000 (23:34 +0200)
commit7c0fc853649c7e203814295de32357cfd6a336a9
tree9234ae81bb18ce6403c4859b37b8e39583ccc3bf
parentc6bee1707523549ce02eadb506f54e9089ea1a3f
Simplified and improved heuristic for long lines detection.

* src/lisp.h (modiff_incr): Add a parameter to 'modiff_incr' to record
the extent of the modification.

* src/insdel.c (insert_1_both, insert_from_string_1, insert_from_gap,
insert_from_buffer_1, adjust_after_replace, replace_range,
replace_range_2, del_range_2, modify_text): Add an argument to each
call to 'modiff_incr'.

* src/textprop.c (modify_text_properties): Add an argument to the call
to 'modiff_incr'.

* src/buffer.c (Frestore_buffer_modified_p, Fbuffer_swap_text,
modify_overlay): Add an argument to each call to 'modiff_incr'.

* src/xdisp.c (redisplay_window): Use the improved version of 'MODIFF'
for the heuristic.
src/buffer.c
src/insdel.c
src/lisp.h
src/textprop.c
src/xdisp.c