diff options
| author | Richard M. Stallman | 1999-02-01 11:17:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-02-01 11:17:41 +0000 |
| commit | 6e553d5e6c90f945f1dd611995df3a908ffe7a8c (patch) | |
| tree | 37e42bd66392082efd2a9c99a04b4c00657dc398 /src/buffer.c | |
| parent | 667aec946d0e2f3274654e31d8e92431d519b81a (diff) | |
| download | emacs-6e553d5e6c90f945f1dd611995df3a908ffe7a8c.tar.gz emacs-6e553d5e6c90f945f1dd611995df3a908ffe7a8c.zip | |
(Fset_buffer_multibyte): Error if buffer is multibyte.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 3 |
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; |