(record_point): Don't call Fundo_boundary for first
change. (Bug#731)
This commit is contained in:
parent
9d0a6e4205
commit
3ecc116303
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-09-22 Martin Rudalics <rudalics@gmx.at>
|
||||
|
||||
* undo.c (record_point): Don't call Fundo_boundary for first
|
||||
change. (Bug#731)
|
||||
|
||||
2008-09-22 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* emacs.c (Fdaemonp): Doc fix.
|
||||
|
|
|
@ -79,7 +79,13 @@ record_point (pt)
|
|||
if (NILP (pending_boundary))
|
||||
pending_boundary = Fcons (Qnil, Qnil);
|
||||
|
||||
if (current_buffer != last_undo_buffer)
|
||||
if ((current_buffer != last_undo_buffer)
|
||||
/* Don't call Fundo_boundary for the first change. Otherwise we
|
||||
risk overwriting last_boundary_position in Fundo_boundary with
|
||||
PT of the current buffer and as a consequence not insert an
|
||||
undo boundary because last_boundary_position will equal pt in
|
||||
the test at the end of the present function (Bug#731). */
|
||||
&& (MODIFF > SAVE_MODIFF))
|
||||
Fundo_boundary ();
|
||||
last_undo_buffer = current_buffer;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue