From: Gerd Moellmann Date: Tue, 28 Dec 1999 12:13:02 +0000 (+0000) Subject: (modify_overlay): Always compute unchanged info. X-Git-Tag: emacs-pretest-21.0.90~5614 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=481b505472c397d389a75e4c4e0247b724cde746;p=emacs.git (modify_overlay): Always compute unchanged info. --- diff --git a/src/ChangeLog b/src/ChangeLog index afa53ef651a..22875eaf75a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +1999-12-28 Gerd Moellmann + + * 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 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'. @@ -9,10 +16,10 @@ * 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. @@ -29,7 +36,7 @@ (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. @@ -37,7 +44,7 @@ * 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. diff --git a/src/buffer.c b/src/buffer.c index 47d15e9fcf1..871a152484e 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -3088,6 +3088,8 @@ modify_overlay (buf, start, end) 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)) @@ -3095,8 +3097,6 @@ modify_overlay (buf, start, end) /* 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); }