(modify_overlay): Always compute unchanged info.
authorGerd Moellmann <gerd@gnu.org>
Tue, 28 Dec 1999 12:13:02 +0000 (12:13 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 28 Dec 1999 12:13:02 +0000 (12:13 +0000)
src/ChangeLog
src/buffer.c

index afa53ef..22875ea 100644 (file)
@@ -1,3 +1,10 @@
+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_FACEGLYPH_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_GLYPHFSST_GLYPH_FACE): Likewise.
+       (GLYPH_MASK_REV_DIRGLYPH_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_codedirect_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.
index 47d15e9..871a152 100644 (file)
@@ -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);
 }