diff options
| author | Andreas Schwab | 1998-04-14 10:27:32 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1998-04-14 10:27:32 +0000 |
| commit | 70e771195598c5729a5fef183130ff3f1f628943 (patch) | |
| tree | f2cac7a15d17c084639d51e2906d62b22a924cc3 /src/buffer.c | |
| parent | 68e3a8f141204681f90d23fce372f5bc0c3328f3 (diff) | |
| download | emacs-70e771195598c5729a5fef183130ff3f1f628943.tar.gz emacs-70e771195598c5729a5fef183130ff3f1f628943.zip | |
(Fset_buffer_multibyte): Do nothing if nothing actually
changes.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
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.") | |||
| 1716 | { | 1716 | { |
| 1717 | Lisp_Object tail, markers; | 1717 | Lisp_Object tail, markers; |
| 1718 | 1718 | ||
| 1719 | /* Do nothing if nothing actually changes. */ | ||
| 1720 | if (NILP (flag) == NILP (current_buffer->enable_multibyte_characters)) | ||
| 1721 | return flag; | ||
| 1722 | |||
| 1719 | /* It would be better to update the list, | 1723 | /* It would be better to update the list, |
| 1720 | but this is good enough for now. */ | 1724 | but this is good enough for now. */ |
| 1721 | if (! EQ (current_buffer->undo_list, Qt)) | 1725 | if (! EQ (current_buffer->undo_list, Qt)) |