aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorGregory Heytings2022-12-10 23:04:10 +0000
committerGregory Heytings2022-12-11 00:16:27 +0100
commit7d787564c08351b275e8f729e8e9f1ec2ae8fe04 (patch)
tree4c803b455311e549bd8d6b5d8ddeab768af91b77 /src/buffer.h
parent118465f6fed8bf490cc69634b96d1ffa721abb7b (diff)
downloademacs-7d787564c08351b275e8f729e8e9f1ec2ae8fe04.tar.gz
emacs-7d787564c08351b275e8f729e8e9f1ec2ae8fe04.zip
Actually improve detection of long lines
* src/xdisp.c (redisplay_window): Update condition. * src/xdisp.c (mark_window_display_accurate_1): * src/pdumper.c (dump_buffer): * src/buffer.h (BUF_CHARS_UNCHANGED_MODIFIED): (struct buffer_text): * src/buffer.c (Fget_buffer_create): Revert 1c837c42c2, which was misguided.
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/buffer.h b/src/buffer.h
index dded0cd98c1..80b3fd81e09 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -149,18 +149,12 @@ enum { BEG = 1, BEG_BYTE = BEG };
149#define BUF_BEG_UNCHANGED(buf) ((buf)->text->beg_unchanged) 149#define BUF_BEG_UNCHANGED(buf) ((buf)->text->beg_unchanged)
150#define BUF_END_UNCHANGED(buf) ((buf)->text->end_unchanged) 150#define BUF_END_UNCHANGED(buf) ((buf)->text->end_unchanged)
151 151
152#define BUF_CHARS_UNCHANGED_MODIFIED(buf) \
153 ((buf)->text->chars_unchanged_modified)
154
155#define UNCHANGED_MODIFIED \ 152#define UNCHANGED_MODIFIED \
156 BUF_UNCHANGED_MODIFIED (current_buffer) 153 BUF_UNCHANGED_MODIFIED (current_buffer)
157#define OVERLAY_UNCHANGED_MODIFIED \ 154#define OVERLAY_UNCHANGED_MODIFIED \
158 BUF_OVERLAY_UNCHANGED_MODIFIED (current_buffer) 155 BUF_OVERLAY_UNCHANGED_MODIFIED (current_buffer)
159#define BEG_UNCHANGED BUF_BEG_UNCHANGED (current_buffer) 156#define BEG_UNCHANGED BUF_BEG_UNCHANGED (current_buffer)
160#define END_UNCHANGED BUF_END_UNCHANGED (current_buffer) 157#define END_UNCHANGED BUF_END_UNCHANGED (current_buffer)
161
162#define CHARS_UNCHANGED_MODIFIED \
163 BUF_CHARS_UNCHANGED_MODIFIED (current_buffer)
164 158
165/* Functions to set PT in the current buffer, or another buffer. */ 159/* Functions to set PT in the current buffer, or another buffer. */
166 160
@@ -274,11 +268,6 @@ struct buffer_text
274 end_unchanged contain no useful information. */ 268 end_unchanged contain no useful information. */
275 modiff_count overlay_unchanged_modified; 269 modiff_count overlay_unchanged_modified;
276 270
277 /* CHARS_MODIFF as of last redisplay that finished. It's used
278 when we only care about changes in actual buffer text, not in
279 any other kind of changes, like properties etc. */
280 modiff_count chars_unchanged_modified;
281
282 /* Properties of this buffer's text. */ 271 /* Properties of this buffer's text. */
283 INTERVAL intervals; 272 INTERVAL intervals;
284 273