changeset 30682:5583737fcf85

(record_delete): Make sure last_point_position_buffer is a buffer before comparing pointers.
author Ken Raeburn <raeburn@raeburn.org>
date Tue, 08 Aug 2000 14:44:05 +0000
parents eed7b9be8ad3
children 386d91b16514
files src/undo.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/undo.c	Tue Aug 08 14:43:28 2000 +0000
+++ b/src/undo.c	Tue Aug 08 14:44:05 2000 +0000
@@ -140,6 +140,8 @@
      point wasn't at start of deleted range, record where it was.  */
   if (at_boundary
       && last_point_position != XFASTINT (sbeg)
+      /* If we're called from batch mode, this could be nil.  */
+      && BUFFERP (last_point_position_buffer)
       && current_buffer == XBUFFER (last_point_position_buffer))
     current_buffer->undo_list
       = Fcons (make_number (last_point_position), current_buffer->undo_list);