changeset 24240:6ea9058180ec

(Fset_buffer_multibyte): Error if buffer is multibyte.
author Richard M. Stallman <rms@gnu.org>
date Mon, 01 Feb 1999 11:17:41 +0000
parents e6c0e87123a7
children 31a8f281b188
files src/buffer.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Mon Feb 01 10:38:08 1999 +0000
+++ b/src/buffer.c	Mon Feb 01 11:17:41 1999 +0000
@@ -1735,6 +1735,9 @@
 {
   Lisp_Object tail, markers;
 
+  if (current_buffer->base_buffer)
+    error ("Cannot do `set-buffer-multibyte' on an indirect buffer");
+
   /* Do nothing if nothing actually changes.  */
   if (NILP (flag) == NILP (current_buffer->enable_multibyte_characters))
     return flag;