From 031b0e312243d51efbec53712e016578034212ae Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Fri, 2 Oct 1992 22:18:46 +0000 Subject: [PATCH] * xmenu.c: #include "keyboard.h". (Fx_popup_menu): Use the event accessors defined in keyboard.h, instead of writing out cars and cdrs. --- src/xmenu.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/xmenu.c b/src/xmenu.c index a15907090e6..14f45cb18b9 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -34,6 +34,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "lisp.h" #include "frame.h" #include "window.h" +#include "keyboard.h" /* This may include sys/types.h, and that somehow loses if this is not done before the other system files. */ @@ -130,9 +131,9 @@ be the return value for that line (i.e. if it is selected.") } else { - tem = Fcdr (position); - window = Fcar (tem); - tem = Fcar (Fcdr (Fcdr (tem))); + tem = EVENT_START (position); + window = POSN_WINDOW (tem); + tem = POSN_WINDOW_POSN (tem); x = Fcar (tem); y = Fcdr (tem); }