aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn2000-10-27 23:01:20 +0000
committerKen Raeburn2000-10-27 23:01:20 +0000
commitae0b9b4690a0bcff233659d3892797b1743a99fd (patch)
tree55ec4fa3c4de9daba89b41efc84e2bc2febe24a7 /src
parentcaf9deeeedd3bca01fb7aac07c0ac4d95c6292dc (diff)
downloademacs-ae0b9b4690a0bcff233659d3892797b1743a99fd.tar.gz
emacs-ae0b9b4690a0bcff233659d3892797b1743a99fd.zip
* undo.c (record_delete): Check that last_undo_buffer is really a buffer before
applying XBUFFER to it. * keymap.c (where_is_internal): Pass lisp object, not integer, to Faref.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/keymap.c2
-rw-r--r--src/undo.c3
3 files changed, 9 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index eb0356db4e6..eb4f2052aec 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -2,6 +2,12 @@
2 2
3 * window.h (Fwindow_live_p): Declare. 3 * window.h (Fwindow_live_p): Declare.
4 4
5 * undo.c (record_delete): Check that last_undo_buffer is really a
6 buffer before applying XBUFFER to it.
7
8 * keymap.c (where_is_internal): Pass lisp object, not integer, to
9 Faref.
10
52000-10-27 Stefan Monnier <monnier@cs.yale.edu> 112000-10-27 Stefan Monnier <monnier@cs.yale.edu>
6 12
7 * lisp.h (KEYMAPP): New macro. 13 * lisp.h (KEYMAPP): New macro.
diff --git a/src/keymap.c b/src/keymap.c
index ccb39da186f..c24bb66b625 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -2108,7 +2108,7 @@ where_is_internal (definition, keymaps, firstonly, noindirect)
2108 if (nomenus && XINT (last) >= 0) 2108 if (nomenus && XINT (last) >= 0)
2109 { /* If no menu entries should be returned, skip over the 2109 { /* If no menu entries should be returned, skip over the
2110 keymaps bound to `menu-bar' and `tool-bar'. */ 2110 keymaps bound to `menu-bar' and `tool-bar'. */
2111 Lisp_Object tem = Faref (this, 0); 2111 Lisp_Object tem = Faref (this, make_number (0));
2112 if (EQ (tem, Qmenu_bar) || EQ (tem, Qtool_bar)) 2112 if (EQ (tem, Qmenu_bar) || EQ (tem, Qtool_bar))
2113 continue; 2113 continue;
2114 } 2114 }
diff --git a/src/undo.c b/src/undo.c
index e2e4749c6a3..2eedfe31ab3 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -102,7 +102,8 @@ record_delete (beg, string)
102 if (NILP (pending_boundary)) 102 if (NILP (pending_boundary))
103 pending_boundary = Fcons (Qnil, Qnil); 103 pending_boundary = Fcons (Qnil, Qnil);
104 104
105 if (current_buffer != XBUFFER (last_undo_buffer)) 105 if (BUFFERP (last_undo_buffer)
106 && current_buffer != XBUFFER (last_undo_buffer))
106 Fundo_boundary (); 107 Fundo_boundary ();
107 XSETBUFFER (last_undo_buffer, current_buffer); 108 XSETBUFFER (last_undo_buffer, current_buffer);
108 109