Mercurial > emacs
comparison src/undo.c @ 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 | 12d806a22931 |
children | 78ce106d272e |
comparison
equal
deleted
inserted
replaced
30681:eed7b9be8ad3 | 30682:5583737fcf85 |
---|---|
138 | 138 |
139 /* If we are just after an undo boundary, and | 139 /* If we are just after an undo boundary, and |
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); |
146 | 148 |
147 current_buffer->undo_list | 149 current_buffer->undo_list |