aboutsummaryrefslogtreecommitdiffstats
path: root/src/undo.c
diff options
context:
space:
mode:
authorKen Raeburn2000-08-08 14:45:00 +0000
committerKen Raeburn2000-08-08 14:45:00 +0000
commitb347b3fd3fbbdd5f009294edd406696889f34329 (patch)
treeb5c291352930c9d5d219f80b1a587f5262bc0ef8 /src/undo.c
parente18dfbf4a7a2b3ec2f8148f03d3cd67a90bd9b7e (diff)
downloademacs-b347b3fd3fbbdd5f009294edd406696889f34329.tar.gz
emacs-b347b3fd3fbbdd5f009294edd406696889f34329.zip
(record_delete): Make sure last_point_position_buffer is a buffer before
comparing pointers.
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/undo.c b/src/undo.c
index c09da9cddb5..49dc4453d11 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -140,6 +140,8 @@ record_delete (beg, string)
140 point wasn't at start of deleted range, record where it was. */ 140 point wasn't at start of deleted range, record where it was. */
141 if (at_boundary 141 if (at_boundary
142 && last_point_position != XFASTINT (sbeg) 142 && last_point_position != XFASTINT (sbeg)
143 /* If we're called from batch mode, this could be nil. */
144 && BUFFERP (last_point_position_buffer)
143 && current_buffer == XBUFFER (last_point_position_buffer)) 145 && current_buffer == XBUFFER (last_point_position_buffer))
144 current_buffer->undo_list 146 current_buffer->undo_list
145 = Fcons (make_number (last_point_position), current_buffer->undo_list); 147 = Fcons (make_number (last_point_position), current_buffer->undo_list);