Mercurial > emacs
comparison src/xmenu.c @ 1304:93d55019750e
* xmenu.c: #include "keyboard.h".
(Fx_popup_menu): Use the event accessors defined in keyboard.h,
instead of writing out cars and cdrs.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Fri, 02 Oct 1992 22:18:46 +0000 |
parents | 0901fe62d97b |
children | 36ef55ecb265 |
comparison
equal
deleted
inserted
replaced
1303:0a488d74fd6c | 1304:93d55019750e |
---|---|
32 #include <signal.h> | 32 #include <signal.h> |
33 #include "config.h" | 33 #include "config.h" |
34 #include "lisp.h" | 34 #include "lisp.h" |
35 #include "frame.h" | 35 #include "frame.h" |
36 #include "window.h" | 36 #include "window.h" |
37 #include "keyboard.h" | |
37 | 38 |
38 /* This may include sys/types.h, and that somehow loses | 39 /* This may include sys/types.h, and that somehow loses |
39 if this is not done before the other system files. */ | 40 if this is not done before the other system files. */ |
40 #include "xterm.h" | 41 #include "xterm.h" |
41 | 42 |
128 x = Fcar (tem); | 129 x = Fcar (tem); |
129 y = Fcar (Fcdr (tem)); | 130 y = Fcar (Fcdr (tem)); |
130 } | 131 } |
131 else | 132 else |
132 { | 133 { |
133 tem = Fcdr (position); | 134 tem = EVENT_START (position); |
134 window = Fcar (tem); | 135 window = POSN_WINDOW (tem); |
135 tem = Fcar (Fcdr (Fcdr (tem))); | 136 tem = POSN_WINDOW_POSN (tem); |
136 x = Fcar (tem); | 137 x = Fcar (tem); |
137 y = Fcdr (tem); | 138 y = Fcdr (tem); |
138 } | 139 } |
139 CHECK_WINDOW (window, 0); | 140 CHECK_WINDOW (window, 0); |
140 CHECK_NUMBER (x, 0); | 141 CHECK_NUMBER (x, 0); |