Commit 2f33f38a authored by Gerd Moellmann's avatar Gerd Moellmann

(record_first_change, record_marker_adjustment): Don'use

XBUFFER on last_undo_buffer which might not be a buffer.
parent 136b4eda
...@@ -167,7 +167,8 @@ record_marker_adjustment (marker, adjustment) ...@@ -167,7 +167,8 @@ record_marker_adjustment (marker, adjustment)
if (NILP (pending_boundary)) if (NILP (pending_boundary))
pending_boundary = Fcons (Qnil, Qnil); pending_boundary = Fcons (Qnil, Qnil);
if (current_buffer != XBUFFER (last_undo_buffer)) if (!BUFFERP (last_undo_buffer)
|| current_buffer != XBUFFER (last_undo_buffer))
Fundo_boundary (); Fundo_boundary ();
XSETBUFFER (last_undo_buffer, current_buffer); XSETBUFFER (last_undo_buffer, current_buffer);
...@@ -201,7 +202,8 @@ record_first_change () ...@@ -201,7 +202,8 @@ record_first_change ()
if (EQ (current_buffer->undo_list, Qt)) if (EQ (current_buffer->undo_list, Qt))
return; return;
if (current_buffer != XBUFFER (last_undo_buffer)) if (!BUFFERP (last_undo_buffer)
|| current_buffer != XBUFFER (last_undo_buffer))
Fundo_boundary (); Fundo_boundary ();
XSETBUFFER (last_undo_buffer, current_buffer); XSETBUFFER (last_undo_buffer, current_buffer);
......
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