[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: No refresh of buffer before popup-menu
From: |
Eli Zaretskii |
Subject: |
Re: No refresh of buffer before popup-menu |
Date: |
Thu, 22 Feb 2007 06:19:35 +0200 |
> Date: Thu, 22 Feb 2007 00:35:07 +0100
> From: "Lennart Borgman (gmail)" <address@hidden>
> Cc: address@hidden
>
> I thought that the command choosen from the menu were put in some queue
> in the lisp thread for processing. At some point Emacs must decide that
> the popup menu is gone and let the gui thread update the screen. Why can
> not this happen before processing the command choosen?
Because your model of what happens is incorrect. The menu is
processed in its entirety by the Windows menu-handling API, and Emacs
never sees anything until the menu is popped down.
IOW, we create the menu structure, call Windows, and then wait until
the user chooses some menu item; only then does the Windows API return
to Emacs with an indication of the user selection. There's no queue
in the Lisp thread where the menu-related events are put, because
there are no events we see until the menu pops down.
- No refresh of buffer before popup-menu, Lennart Borgman (gmail), 2007/02/20
- Re: No refresh of buffer before popup-menu, Jason Rumney, 2007/02/21
- Re: No refresh of buffer before popup-menu, Lennart Borgman (gmail), 2007/02/21
- Re: No refresh of buffer before popup-menu, Jason Rumney, 2007/02/21
- Re: No refresh of buffer before popup-menu, Lennart Borgman (gmail), 2007/02/21
- Re: No refresh of buffer before popup-menu, Jason Rumney, 2007/02/21
- Re: No refresh of buffer before popup-menu, Lennart Borgman (gmail), 2007/02/21
- Re: No refresh of buffer before popup-menu,
Eli Zaretskii <=
- Re: No refresh of buffer before popup-menu, martin rudalics, 2007/02/22
- Re: No refresh of buffer before popup-menu, Lennart Borgman (gmail), 2007/02/22
- Re: No refresh of buffer before popup-menu, Kim F. Storm, 2007/02/22
- Re: No refresh of buffer before popup-menu, Lennart Borgman (gmail), 2007/02/22
- Re: No refresh of buffer before popup-menu, Kim F. Storm, 2007/02/22
- Re: No refresh of buffer before popup-menu, Lennart Borgman (gmail), 2007/02/22
- Re: No refresh of buffer before popup-menu, Kim F. Storm, 2007/02/22
- Re: No refresh of buffer before popup-menu, Lennart Borgman (gmail), 2007/02/22
- Re: No refresh of buffer before popup-menu, Kim F. Storm, 2007/02/22
- Re: No refresh of buffer before popup-menu, Lennart Borgman (gmail), 2007/02/22