changeset 26970:7b3d9b3a9d69

(Fset_buffer_multibyte): Arrange for a thorough redisplay after changing the multibyteness of a buffer.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 22 Dec 1999 10:57:23 +0000
parents 3d15c1981f27
children c22771fbb4b3
files src/buffer.c
diffstat 1 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Wed Dec 22 10:29:16 1999 +0000
+++ b/src/buffer.c	Wed Dec 22 10:57:23 1999 +0000
@@ -1881,12 +1881,20 @@
       set_intervals_multibyte (1);
     }
 
+  /* Changing the multibyteness of a buffer means that all windows
+     showing that buffer must be updated thoroughly.  */
+  current_buffer->prevent_redisplay_optimizations_p = 1;
+  ++windows_or_buffers_changed;
+
   /* Copy this buffer's new multibyte status
      into all of its indirect buffers.  */
   for (other = all_buffers; other; other = other->next)
     if (other->base_buffer == current_buffer && !NILP (other->name))
-      other->enable_multibyte_characters
-	= current_buffer->enable_multibyte_characters;
+      {
+	other->enable_multibyte_characters
+	  = current_buffer->enable_multibyte_characters;
+	other->prevent_redisplay_optimizations_p = 1;
+      }
 
   return flag;
 }