1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-01 08:17:38 +00:00

Fix bug #16070 with crashes when toggling buffer's multibyteness.

src/buffer.c (Fset_buffer_multibyte): Invalidate buffer caches.
This commit is contained in:
Eli Zaretskii 2013-12-06 17:13:35 +02:00
parent ed72f323bf
commit 6d6aa291f2
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2013-12-06 Eli Zaretskii <eliz@gnu.org>
* buffer.c (Fset_buffer_multibyte): Invalidate buffer caches.
(Bug#16070)
2013-12-06 Dmitry Antipov <dmantipov@yandex.ru>
* xterm.c (input_signal_count): Remove.

View File

@ -2482,6 +2482,8 @@ current buffer is cleared. */)
if (narrowed)
error ("Changing multibyteness in a narrowed buffer");
invalidate_buffer_caches (current_buffer, BEGV, ZV);
if (NILP (flag))
{
ptrdiff_t pos, stop;