aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Raeburn2000-08-08 14:45:00 +0000
committerKen Raeburn2000-08-08 14:45:00 +0000
commitb347b3fd3fbbdd5f009294edd406696889f34329 (patch)
treeb5c291352930c9d5d219f80b1a587f5262bc0ef8
parente18dfbf4a7a2b3ec2f8148f03d3cd67a90bd9b7e (diff)
downloademacs-b347b3fd3fbbdd5f009294edd406696889f34329.tar.gz
emacs-b347b3fd3fbbdd5f009294edd406696889f34329.zip
(record_delete): Make sure last_point_position_buffer is a buffer before
comparing pointers.
-rw-r--r--src/ChangeLog26
-rw-r--r--src/undo.c2
2 files changed, 28 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b1a2b6aca82..3a749f95627 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,31 @@
12000-08-08 Ken Raeburn <raeburn@gnu.org> 12000-08-08 Ken Raeburn <raeburn@gnu.org>
2 2
3 * keyboard.c (syms_of_keyboard): Initialize
4 last_point_position_buffer.
5 * undo.c (record_delete): Make sure last_point_position_buffer is
6 a buffer before comparing pointers.
7
8 * coding.h (decode_coding_string): Declare.
9
10 * intervals.h (Fprevious_single_char_property_change): Declare.
11
12 * textprop.c (Fprevious_single_char_property_change): Don't do
13 arithmetic directly on lisp objects.
14
15 * editfns.c (find_field): Use EQ, not ==, to compare lisp
16 objects.
17
18 * keyboard.h (menu_item_eval_property): Declare.
19
20 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
21 reuse as buffer name, instead of recreating (and discarding) every
22 time a message is logged.
23 (with_echo_area_buffer): Make callback arg A2 a lisp object.
24 (current_message_1, truncate_message_1, set_message_1,
25 display_echo_area_1, resize_mini_window_1): Signatures changed.
26 (current_message, truncate_echo_area, display_echo_area,
27 resize_echo_area_axactly): Changed calls.
28
3 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a 29 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
4 lisp object. 30 lisp object.
5 (Ffind_coding_systems_region_internal): First argument to Fappend 31 (Ffind_coding_systems_region_internal): First argument to Fappend
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);