aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitry Antipov2014-08-05 10:04:38 +0400
committerDmitry Antipov2014-08-05 10:04:38 +0400
commit1d58ab89ca6eb1f87a812e23ffca210e15c4fb5f (patch)
tree38d0779485ebe75fc2e018284151174b9f6e193a /src
parenta270fa7cf82cb23c6dcd84aab7f2c178ac0cca55 (diff)
downloademacs-1d58ab89ca6eb1f87a812e23ffca210e15c4fb5f.tar.gz
emacs-1d58ab89ca6eb1f87a812e23ffca210e15c4fb5f.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/buffer.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3f9b4577460..de56e3501d8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12014-08-05 Dmitry Antipov <dmantipov@yandex.ru>
2
3 Fix bug with uninitialized undo list of an indirect buffer (Bug#18180).
4 * buffer.c (Fmake_indirect_buffer): Initialize undo list with the
5 base buffer's undo list.
6
12014-08-03 Dmitry Antipov <dmantipov@yandex.ru> 72014-08-03 Dmitry Antipov <dmantipov@yandex.ru>
2 8
3 Fix bug with an attempt to select uninitialized frame (Bug#18161). 9 Fix bug with an attempt to select uninitialized frame (Bug#18161).
diff --git a/src/buffer.c b/src/buffer.c
index 8077e47fa0b..495f937d83f 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -809,6 +809,9 @@ CLONE nil means the indirect buffer's state is reset to default values. */)
809 set_string_intervals (name, NULL); 809 set_string_intervals (name, NULL);
810 bset_name (b, name); 810 bset_name (b, name);
811 811
812 /* An indirect buffer shares undo list of its base (Bug#18180). */
813 bset_undo_list (b, BVAR (b->base_buffer, undo_list));
814
812 reset_buffer (b); 815 reset_buffer (b);
813 reset_buffer_local_variables (b, 1); 816 reset_buffer_local_variables (b, 1);
814 817