mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-29 08:31:35 -08:00
* xmenu.c: #include "keyboard.h".
(Fx_popup_menu): Use the event accessors defined in keyboard.h, instead of writing out cars and cdrs.
This commit is contained in:
parent
db3563a8a2
commit
031b0e3122
1 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue