comparison src/buffer.c @ 21506:a44f9f59c656

(Fset_buffer_multibyte): Do nothing if nothing actually changes.
author Andreas Schwab <schwab@suse.de>
date Tue, 14 Apr 1998 10:27:32 +0000
parents 50929073a0ba
children fa9ff387d260
comparison
equal deleted inserted replaced
21505:eeffe4ca2306 21506:a44f9f59c656
1713 but the contents viewed as characters do change.") 1713 but the contents viewed as characters do change.")
1714 (flag) 1714 (flag)
1715 Lisp_Object flag; 1715 Lisp_Object flag;
1716 { 1716 {
1717 Lisp_Object tail, markers; 1717 Lisp_Object tail, markers;
1718
1719 /* Do nothing if nothing actually changes. */
1720 if (NILP (flag) == NILP (current_buffer->enable_multibyte_characters))
1721 return flag;
1718 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))
1722 current_buffer->undo_list = Qnil; 1726 current_buffer->undo_list = Qnil;