mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-31 09:20:54 -08:00
(Fx_popup_menu): Allow a frame instead of a window, in arg.
Use Fcar, Fcdr when extracting from event, to check data types.
This commit is contained in:
parent
12740e58f3
commit
933ff4729c
1 changed files with 3 additions and 3 deletions
|
|
@ -132,9 +132,9 @@ be the return value for that line (i.e. if it is selected).")
|
|||
}
|
||||
else
|
||||
{
|
||||
tem = EVENT_START (position);
|
||||
window = POSN_WINDOW (tem);
|
||||
tem = POSN_WINDOW_POSN (tem);
|
||||
tem = Fcar (Fcdr (position)); /* EVENT_START (position) */
|
||||
window = Fcar (tem); /* POSN_WINDOW (tem) */
|
||||
tem = Fcar (Fcdr (Fcdr (tem))); /* POSN_WINDOW_POSN (tem) */
|
||||
x = Fcar (tem);
|
||||
y = Fcdr (tem);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue