]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fset_buffer_multibyte): Do nothing if nothing actually
authorAndreas Schwab <schwab@suse.de>
Tue, 14 Apr 1998 10:27:32 +0000 (10:27 +0000)
committerAndreas Schwab <schwab@suse.de>
Tue, 14 Apr 1998 10:27:32 +0000 (10:27 +0000)
changes.

src/buffer.c

index 69010af7cd05ea5c02245388925c8bb2c63e92bf..1733fd5e88205834eacfa25b7ca7ec88a275c3b5 100644 (file)
@@ -1716,6 +1716,10 @@ but the contents viewed as characters do change.")
 {
   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))