mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 18:41:25 -08:00
(Fset_buffer_multibyte): Don't make the current buffer as modified if
it is originally unmodified.
This commit is contained in:
parent
8e624fa2af
commit
ed00559de2
2 changed files with 8 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2000-06-06 Kenichi Handa <handa@etl.go.jp>
|
||||
|
||||
* buffer.c (Fset_buffer_multibyte): Don't make the current buffer
|
||||
as modified if it is originally unmodified.
|
||||
|
||||
* term.c (encode_terminal_code): Change the way to check if
|
||||
terminal coding does any conversion.
|
||||
(append_glyph): Set glyph->pixel_width correctly.
|
||||
|
|
|
|||
|
|
@ -1875,6 +1875,7 @@ but the contents viewed as characters do change.")
|
|||
int undo_enabled_p = !EQ (current_buffer->undo_list, Qt);
|
||||
int begv = BEGV, zv = ZV;
|
||||
int narrowed = (BEG != begv || Z != zv);
|
||||
int modified_p = !NILP (Fbuffer_modified_p (Qnil));
|
||||
|
||||
if (current_buffer->base_buffer)
|
||||
error ("Cannot do `set-buffer-multibyte' on an indirect buffer");
|
||||
|
|
@ -2105,6 +2106,10 @@ but the contents viewed as characters do change.")
|
|||
other->prevent_redisplay_optimizations_p = 1;
|
||||
}
|
||||
|
||||
/* Restore the modifiedness of the buffer. */
|
||||
if (!modified_p && !NILP (Fbuffer_modified_p (Qnil)))
|
||||
Fset_buffer_modified_p (Qnil);
|
||||
|
||||
return flag;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue