aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-09-27 03:13:08 +0000
committerKarl Heuer1994-09-27 03:13:08 +0000
commit4a2fb8bd2b21cf11d08a9585f3d72a61831f6240 (patch)
tree13a6bc684702933be9b6f8e5af6b2873376f6566 /src
parent09e82d7cd7fffbb93ffede2ee3374d9b1cadd464 (diff)
downloademacs-4a2fb8bd2b21cf11d08a9585f3d72a61831f6240.tar.gz
emacs-4a2fb8bd2b21cf11d08a9585f3d72a61831f6240.zip
(EVENT_HAS_PARAMETERS): Use type test macros.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/keyboard.h b/src/keyboard.h
index 52e6c1d54f5..feacedd6388 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -53,8 +53,7 @@ extern Lisp_Object internal_last_event_frame;
53/* Macros for dealing with lispy events. */ 53/* Macros for dealing with lispy events. */
54 54
55/* True iff EVENT has data fields describing it (i.e. a mouse click). */ 55/* True iff EVENT has data fields describing it (i.e. a mouse click). */
56#define EVENT_HAS_PARAMETERS(event) \ 56#define EVENT_HAS_PARAMETERS(event) (CONSP (event))
57 (XTYPE (event) == Lisp_Cons)
58 57
59/* Extract the head from an event. 58/* Extract the head from an event.
60 This works on composite and simple events. */ 59 This works on composite and simple events. */