From: Stefan Monnier Date: Thu, 28 Sep 2006 19:00:10 +0000 (+0000) Subject: (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM). X-Git-Tag: emacs-pretest-22.0.90~316 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7ae8428d900662b301d720ee8d3c0d35c4fee077;p=emacs.git (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM). --- diff --git a/src/ChangeLog b/src/ChangeLog index 5f919ffedef..909ea7df2a7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2006-09-28 Stefan Monnier + + * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM). + 2006-09-26 Chong Yidong * indent.c (Fvertical_motion): Do move back if the Lisp string diff --git a/src/keymap.c b/src/keymap.c index 9b36ec08b6d..1476859ccd5 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -1156,7 +1156,7 @@ binding KEY to DEF is added at the front of KEYMAP. */) meta_bit = VECTORP (key) ? meta_modifier : 0x80; - if (VECTORP (def) && ASIZE (def) > 0 && CONSP (AREF (def, make_number (0)))) + if (VECTORP (def) && ASIZE (def) > 0 && CONSP (AREF (def, 0))) { /* DEF is apparently an XEmacs-style keyboard macro. */ Lisp_Object tmp = Fmake_vector (make_number (ASIZE (def)), Qnil); int i = ASIZE (def);