+2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
+
+ * keyboard.c (make_lispy_event): Check integerness and fix
+ Lisp_Object/int mixup.
+
2001-11-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
* fns.c (copy_hash_table): Remove unused variable `v'.
/* The third element of every position
should be the (x,y) pair. */
down = Fcar (Fcdr (Fcdr (start_pos)));
- if (CONSP (down))
+ if (CONSP (down)
+ && INTEGERP (XCAR (down)) && INTEGERP (XCDR (down)))
{
- xdiff = event->x - XCAR (down);
- ydiff = event->y - XCDR (down);
+ xdiff = XFASTINT (event->x) - XFASTINT (XCAR (down));
+ ydiff = XFASTINT (event->y) - XFASTINT (XCDR (down));
}
if (xdiff < double_click_fuzz && xdiff > - double_click_fuzz