From: "Jan D." <jan.h.d@swipnet.se>
Cc: mituharu@math.s.chiba-u.ac.jp, emacs-devel@gnu.org
Subject: Re: alarm_signal_handler is called too frequently
Date: Mon, 01 Nov 2004 10:06:13 +0100 [thread overview]
Message-ID: <4185FC85.70100@swipnet.se> (raw)
In-Reply-To: <E1COWYL-0001lG-V3@fencepost.gnu.org>
Richard Stallman wrote:
> Sorry, I misunderstood. The timer_check is not run from popup_get_selection
> for popup menus because the argument do_timers is 0:
>
> if (do_timers && !XtAppPending (Xt_app_con))
> timer_check (1);
>
> But for dialogs, do_timer is 1, so timers do get checked when a dialog is
> popped up.
>
> Can anyone figure out why these two cases uses different values for
> do_timer? They also use different values for down_on_keypress.
> cthose arguments are clearly there so that the two callers could treat
> these differently. There must have been a reason.
I can't say why the do_timer argument is different, the modification was made
by you almost 2 years ago:
2002-12-21 Richard M. Stallman <rms@gnu.org>
* xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
If it is non-nil, run timers. Use an unwind-protect to requeue
the events that were read ahead.
(popup_get_selection_unwind): New subroutine.
(popup_get_selection_queue): File-scope variable now holds that queue.
(xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
(xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
Use an unwind-protect to pop down the dialog box.
(xdialog_show_unwind): New subroutine implements that.
I can speculate that since popup menus does a grab and dialog does not, there
might have been some difference in event handling.
The reason for the difference in down_on_keypress is that when a popup menu is
up, the keyboard is grabbed, so no keypresses goes to the Emacs frame anyway.
But for a dialog there might be events that goes to the Emacs frame (for
example if you have focus-follows-mouse and the focus is not on the dialog, but
on the frame). For such events the dialog is popped down (as per the old
behaviour from previous Emacs versions).
>
> I guess we just have to get rid of the call to timer_check in
> popup_get_selection.
>
> I guess we do. Will this mean that the cursor doesn't blink?
> If so, it would be good to make sure that the cursor is ON
> rather than off.
Yes, it means that the cursor does not blink for popup menus or dialogs. This
is the same as for Emacs 21.2 (the oldest I have here). The difference is that
in CVS Emacs the cursor turns hollow when a dialog or menu is popped up,
previously it stayed solid.
Jan D.
next prev parent reply other threads:[~2004-11-01 9:06 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-13 1:15 alarm_signal_handler is called too frequently YAMAMOTO Mitsuharu
2004-10-13 14:43 ` Richard Stallman
2004-10-14 5:16 ` YAMAMOTO Mitsuharu
2004-10-17 9:36 ` YAMAMOTO Mitsuharu
2004-10-25 13:13 ` Richard Stallman
2004-10-25 14:38 ` Jan D.
2004-10-27 10:47 ` Richard Stallman
2004-10-28 18:02 ` Jan D.
2004-10-29 1:37 ` YAMAMOTO Mitsuharu
2004-10-29 7:00 ` Jan D.
2004-10-29 8:24 ` YAMAMOTO Mitsuharu
2004-11-01 7:24 ` Richard Stallman
2004-11-01 9:06 ` Jan D. [this message]
2004-11-01 12:21 ` Jan D.
2004-11-02 14:08 ` Richard Stallman
2004-11-02 21:56 ` Jan D.
2004-11-03 17:04 ` Richard Stallman
2004-11-03 17:26 ` Jan D.
2004-11-04 20:42 ` Richard Stallman
2004-11-04 22:41 ` Jan D.
2004-11-05 12:36 ` Kim F. Storm
2004-11-06 5:22 ` Richard Stallman
2004-11-04 13:02 ` Jan D.
2004-10-31 9:42 ` Richard Stallman
2004-10-31 15:11 ` Jan D.
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=4185FC85.70100@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
--cc=mituharu@math.s.chiba-u.ac.jp \
/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.