]> git.eshelyaron.com Git - emacs.git/commit
Improve detection of long lines.
authorGregory Heytings <gregory@heytings.org>
Tue, 23 Aug 2022 15:41:05 +0000 (15:41 +0000)
committerGregory Heytings <gregory@heytings.org>
Tue, 23 Aug 2022 15:48:51 +0000 (17:48 +0200)
commit1c837c42c22181e5fe998c7ea1c6e12c4e711872
tree92a5356d1db303524b7ea83efcc34bd6e8bf2617
parent5d3a99602f15372b305d04c6a732e5c69bbe0c5d
Improve detection of long lines.

* src/buffer.h (struct buffer_text): New field.
(BUF_CHARS_UNCHANGED_MODIFIED, CHARS_UNCHANGED_MODIFIED): New macros.

* src/buffer.c (Fget_buffer_create): Initialize the new field.

* src/xdisp.c (mark_window_display_accurate_1): Set the new field.
(redisplay_window): Use it, together with CHARS_MODIFF, instead of
MODIFF and UNCHANGED_MODIFIED to decide whether to check for long
lines.

* src/pdumper.c (dump_buffer): Dump the new field.
src/buffer.c
src/buffer.h
src/pdumper.c
src/xdisp.c