From: Eli Zaretskii <eliz@gnu.org>
To: Po Lu <luangruo@yahoo.com>
Cc: 55203@debbugs.gnu.org
Subject: bug#55203: 29.0.50; MSW menu bar help text doesn't show when blink-cursor-mode is off
Date: Sun, 01 May 2022 10:10:43 +0300 [thread overview]
Message-ID: <83ee1d7moc.fsf@gnu.org> (raw)
In-Reply-To: <87y1zlrcep.fsf@yahoo.com> (message from Po Lu on Sun, 01 May 2022 14:32:14 +0800)
> From: Po Lu <luangruo@yahoo.com>
> Cc: 55203@debbugs.gnu.org
> Date: Sun, 01 May 2022 14:32:14 +0800
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > This is a well-known problem. It is caused by the implementation of
> > Emacs menus on MS-Windows: we start a separate message loop for
> > handling the menu events, and this suspends the main event loop. When
> > blink-cursor-mode is ON, the timer causes the main event loop to turn
> > a notch, and then Emacs produces the help-echo for the menu item; but
> > without cursor blinking and no other sources of async input events,
> > that doesn't happen.
>
> Thanks. Could you point to where that "separate message loop" is
> started? I couldn't find anything in w32menu.c.
It's in w32fns.c, under WM_EMACS_TRACKPOPUPMENU. w32menu.c sends the
WM_EMACS_TRACKPOPUPMENU message to the main window procedure when the
menu is ready to be displayed. We then call TrackPopupMenu and
discard any mouse events except those which select a menu item (AFAIU
what happens there; I'm nowhere close to being an expert on this
stuff).
prev parent reply other threads:[~2022-05-01 7:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <874k2arm84.fsf.ref@yahoo.com>
2022-05-01 3:00 ` bug#55203: 29.0.50; MSW menu bar help text doesn't show when blink-cursor-mode is off Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-01 6:25 ` Eli Zaretskii
2022-05-01 6:32 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-01 7:10 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83ee1d7moc.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=55203@debbugs.gnu.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.