+1999-12-28 Gerd Moellmann <gerd@gnu.org>
+
+ * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
+ if MODIFF > 1.
+
+ * buffer.c (modify_overlay): Always compute unchanged info.
+
1999-12-27 Kenichi Handa <handa@etl.go.jp>
* dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
* lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
lowest 8 bits are single byte character code, the bits above are
face ID.
- (GLYPH_MASK_FACE) (GLYPH_MASK_CHAR): Adjusted for the change
+ (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
above.
- (FAST_MAKE_GLYPH) (FSST_GLYPH_FACE): Likewise.
- (GLYPH_MASK_REV_DIR) (GLYPH_MASK_PADDING): Macros deleted.
+ (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
+ (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
* charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
of GLYPH_MASK_CHAR.
(GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
characters.
- * dispnew.c (line_hash_code) (direct_output_for_insert): Adjusted
+ * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
for the change of struct glyph.
(line_draw_cost): Adjusted for the change of
GLYPH_FROM_CHAR_GLYPH.
* term.c (encode_terminal_code): Adjusted for the change of struct
glyph and GLYPH_FROM_CHAR_GLYPH.
- (write_glyphs) (insert_glyphs) (append_glyph): Adjusted for the
+ (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
change of struct glyph.
* xdisp.c: All codes adjusted for the change of struct glyph.
start = end; end = temp;
}
+ BUF_COMPUTE_UNCHANGED (buf, start, end);
+
/* If this is a buffer not in the selected window,
we must do other windows. */
if (buf != XBUFFER (XWINDOW (selected_window)->buffer))
/* If multiple windows show this buffer, we must do other windows. */
else if (buffer_shared > 1)
windows_or_buffers_changed = 1;
- else
- BUF_COMPUTE_UNCHANGED (buf, start, end);
++BUF_OVERLAY_MODIFF (buf);
}