From: Andreas Schwab Date: Tue, 14 Apr 1998 10:27:32 +0000 (+0000) Subject: (Fset_buffer_multibyte): Do nothing if nothing actually X-Git-Tag: emacs-20.3~1569 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=70e771195598c5729a5fef183130ff3f1f628943;p=emacs.git (Fset_buffer_multibyte): Do nothing if nothing actually changes. --- diff --git a/src/buffer.c b/src/buffer.c index 69010af7cd0..1733fd5e882 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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))