aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2001-11-06 15:07:31 +0000
committerStefan Monnier2001-11-06 15:07:31 +0000
commit7a6a97d7b9e970e757c1a9c96412ca351207ea0c (patch)
treeb9cf6f4d95b187ea2694f46e55c1cf37e91c151d /src
parent4d994a79100c894fb56fd8a19e95f633e3d0d309 (diff)
downloademacs-7a6a97d7b9e970e757c1a9c96412ca351207ea0c.tar.gz
emacs-7a6a97d7b9e970e757c1a9c96412ca351207ea0c.zip
(make_lispy_event): Check integerness and fix Lisp_Object/int mixup.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/keyboard.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index da2e7ffaa27..ddf6680a01d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12001-11-06 Stefan Monnier <monnier@cs.yale.edu>
2
3 * keyboard.c (make_lispy_event): Check integerness and fix
4 Lisp_Object/int mixup.
5
12001-11-06 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 62001-11-06 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
2 7
3 * fns.c (copy_hash_table): Remove unused variable `v'. 8 * fns.c (copy_hash_table): Remove unused variable `v'.
diff --git a/src/keyboard.c b/src/keyboard.c
index ff430fddde7..2aa4b51ccf3 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -4996,10 +4996,11 @@ make_lispy_event (event)
4996 /* The third element of every position 4996 /* The third element of every position
4997 should be the (x,y) pair. */ 4997 should be the (x,y) pair. */
4998 down = Fcar (Fcdr (Fcdr (start_pos))); 4998 down = Fcar (Fcdr (Fcdr (start_pos)));
4999 if (CONSP (down)) 4999 if (CONSP (down)
5000 && INTEGERP (XCAR (down)) && INTEGERP (XCDR (down)))
5000 { 5001 {
5001 xdiff = event->x - XCAR (down); 5002 xdiff = XFASTINT (event->x) - XFASTINT (XCAR (down));
5002 ydiff = event->y - XCDR (down); 5003 ydiff = XFASTINT (event->y) - XFASTINT (XCDR (down));
5003 } 5004 }
5004 5005
5005 if (xdiff < double_click_fuzz && xdiff > - double_click_fuzz 5006 if (xdiff < double_click_fuzz && xdiff > - double_click_fuzz