aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorGregory Heytings2022-07-20 17:12:23 +0000
committerGregory Heytings2022-07-20 19:14:41 +0200
commitc7eef61eee179d127d4edeb828c723f4dee530b4 (patch)
tree71e1f6978c0f0828f03aa781e9244e39f8c6618b /src/buffer.h
parent7c0fc853649c7e203814295de32357cfd6a336a9 (diff)
downloademacs-c7eef61eee179d127d4edeb828c723f4dee530b4.tar.gz
emacs-c7eef61eee179d127d4edeb828c723f4dee530b4.zip
Further tweaks to long lines handling.
* src/xdisp.c (redisplay_window): Increase the threshold above which long lines detection is performed in the buffer. This should avoid triggering that detection for most simple editing operations. * src/lisp.h (modiff_incr): Explain why the counter is incremented logarithmically. * src/buffer.h (struct buffer_text): Adapt the comment about the 'modiff' field accordingly. * src/buffer.c (modify_overlay): Increase the counter by 1 instead of the size of the buffer section on which the overlay is placed. * etc/NEWS: Small improvement.
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 09daa29992a..47b4bdf749b 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -237,9 +237,10 @@ struct buffer_text
237 ptrdiff_t z_byte; /* Byte pos of end of buffer. */ 237 ptrdiff_t z_byte; /* Byte pos of end of buffer. */
238 ptrdiff_t gap_size; /* Size of buffer's gap. */ 238 ptrdiff_t gap_size; /* Size of buffer's gap. */
239 modiff_count modiff; /* This counts buffer-modification events 239 modiff_count modiff; /* This counts buffer-modification events
240 for this buffer. It is incremented for 240 for this buffer. It is increased
241 each such event, and never otherwise 241 logarithmically to the extent of the
242 changed. */ 242 modification for each such event,
243 and never otherwise changed. */
243 modiff_count chars_modiff; /* This is modified with character change 244 modiff_count chars_modiff; /* This is modified with character change
244 events for this buffer. It is set to 245 events for this buffer. It is set to
245 modiff for each such event, and never 246 modiff for each such event, and never