emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-24 r117424: Fix bug with uninitialized undo list of


From: Dmitry Antipov
Subject: [Emacs-diffs] emacs-24 r117424: Fix bug with uninitialized undo list of an indirect buffer (Bug#18180).
Date: Tue, 05 Aug 2014 06:05:02 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 117424
revision-id: address@hidden
parent: address@hidden
committer: Dmitry Antipov <address@hidden>
branch nick: emacs-24
timestamp: Tue 2014-08-05 10:04:38 +0400
message:
  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.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/buffer.c                   buffer.c-20091113204419-o5vbwnq5f7feedwu-264
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-08-03 07:19:43 +0000
+++ b/src/ChangeLog     2014-08-05 06:04:38 +0000
@@ -1,3 +1,9 @@
+2014-08-05  Dmitry Antipov  <address@hidden>
+
+       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  <address@hidden>
 
        Fix bug with an attempt to select uninitialized frame (Bug#18161).

=== modified file 'src/buffer.c'
--- a/src/buffer.c      2014-05-03 08:47:50 +0000
+++ b/src/buffer.c      2014-08-05 06:04:38 +0000
@@ -809,6 +809,9 @@
   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);
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]