Commit 1d58ab89 authored by Dmitry Antipov's avatar Dmitry Antipov
Browse files

Fix bug with uninitialized undo list of an indirect buffer (Bug#18180).

* buffer.c (Fmake_indirect_buffer): Initialize undo list with the
base buffer's undo list.
parent a270fa7c
2014-08-05 Dmitry Antipov <dmantipov@yandex.ru>
Fix bug with uninitialized undo list of an indirect buffer (Bug#18180).
* buffer.c (Fmake_indirect_buffer): Initialize undo list with the
base buffer's undo list.
2014-08-03 Dmitry Antipov <dmantipov@yandex.ru>
Fix bug with an attempt to select uninitialized frame (Bug#18161).
......
......@@ -809,6 +809,9 @@ CLONE nil means the indirect buffer's state is reset to default values. */)
set_string_intervals (name, NULL);
bset_name (b, name);
/* An indirect buffer shares undo list of its base (Bug#18180). */
bset_undo_list (b, BVAR (b->base_buffer, undo_list));
reset_buffer (b);
reset_buffer_local_variables (b, 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment