comparison src/buffer.c @ 26970:7b3d9b3a9d69

(Fset_buffer_multibyte): Arrange for a thorough redisplay after changing the multibyteness of a buffer.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 22 Dec 1999 10:57:23 +0000
parents 5dec6111686f
children 520f982f3a9a
comparison
equal deleted inserted replaced
26969:3d15c1981f27 26970:7b3d9b3a9d69
1879 /* Do this last, so it can calculate the new correspondences 1879 /* Do this last, so it can calculate the new correspondences
1880 between chars and bytes. */ 1880 between chars and bytes. */
1881 set_intervals_multibyte (1); 1881 set_intervals_multibyte (1);
1882 } 1882 }
1883 1883
1884 /* Changing the multibyteness of a buffer means that all windows
1885 showing that buffer must be updated thoroughly. */
1886 current_buffer->prevent_redisplay_optimizations_p = 1;
1887 ++windows_or_buffers_changed;
1888
1884 /* Copy this buffer's new multibyte status 1889 /* Copy this buffer's new multibyte status
1885 into all of its indirect buffers. */ 1890 into all of its indirect buffers. */
1886 for (other = all_buffers; other; other = other->next) 1891 for (other = all_buffers; other; other = other->next)
1887 if (other->base_buffer == current_buffer && !NILP (other->name)) 1892 if (other->base_buffer == current_buffer && !NILP (other->name))
1888 other->enable_multibyte_characters 1893 {
1889 = current_buffer->enable_multibyte_characters; 1894 other->enable_multibyte_characters
1895 = current_buffer->enable_multibyte_characters;
1896 other->prevent_redisplay_optimizations_p = 1;
1897 }
1890 1898
1891 return flag; 1899 return flag;
1892 } 1900 }
1893 1901
1894 DEFUN ("kill-all-local-variables", Fkill_all_local_variables, Skill_all_local_variables, 1902 DEFUN ("kill-all-local-variables", Fkill_all_local_variables, Skill_all_local_variables,