changeset 21506:a44f9f59c656

(Fset_buffer_multibyte): Do nothing if nothing actually changes.
author Andreas Schwab <schwab@suse.de>
date Tue, 14 Apr 1998 10:27:32 +0000
parents eeffe4ca2306
children 8b9dd332ccf1
files src/buffer.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Tue Apr 14 10:21:04 1998 +0000
+++ b/src/buffer.c	Tue Apr 14 10:27:32 1998 +0000
@@ -1716,6 +1716,10 @@
 {
   Lisp_Object tail, markers;
 
+  /* Do nothing if nothing actually changes.  */
+  if (NILP (flag) == NILP (current_buffer->enable_multibyte_characters))
+    return flag;
+
   /* It would be better to update the list,
      but this is good enough for now.  */
   if (! EQ (current_buffer->undo_list, Qt))