aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 9d5fb51c258..0cd234303f6 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1735,6 +1735,9 @@ but the contents viewed as characters do change.")
1735{ 1735{
1736 Lisp_Object tail, markers; 1736 Lisp_Object tail, markers;
1737 1737
1738 if (current_buffer->base_buffer)
1739 error ("Cannot do `set-buffer-multibyte' on an indirect buffer");
1740
1738 /* Do nothing if nothing actually changes. */ 1741 /* Do nothing if nothing actually changes. */
1739 if (NILP (flag) == NILP (current_buffer->enable_multibyte_characters)) 1742 if (NILP (flag) == NILP (current_buffer->enable_multibyte_characters))
1740 return flag; 1743 return flag;