all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Severe lossage from unread-command-events
Date: Thu, 06 Aug 2015 19:21:06 +0300	[thread overview]
Message-ID: <83fv3ws80d.fsf@gnu.org> (raw)
In-Reply-To: <87bnek2ze3.fsf@fencepost.gnu.org>

> From: David Kastrup <dak@gnu.org>
> Cc: emacs-devel@gnu.org
> Date: Thu, 06 Aug 2015 17:46:28 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > To see what's going on, I instrumented the code with special
> > printouts, and clearly saw that we only record the events that are
> > taken from unread-command-events in one of two possible places in the
> > code, where we have fragments such as this one:
> >
> >   if (CONSP (Vunread_command_events))
> >     {
> >       [...]
> >       c = XCAR (Vunread_command_events);
> >       Vunread_command_events = XCDR (Vunread_command_events);
> >
> > One such fragment is at the beginning of read_char, around line 2430
> > of keyboard.c -- the events taken there are not recorded, because we
> > jump over the code that records them.
> 
> That's bad because that sounds _intentional_.

I thought about that, and tried to find any reason why such an
intention would be valid, but couldn't.  The comments therein mention
read_char_x_menu_prompt, but that function only records the first
event, and pushes all the rest onto unread-command-events.

If someone who reads this knows why these events were not recorded,
let them speak up now, or forever hold their peace.

> So my suspicion is that this change might result in problems that the
> old code arrangement was intended to avoid.  But one will probably not
> get new input on this without trying.

Indeed.  It could be that we will find something, but the current
situation is clearly unsatisfactory, and has to be fixed.  If the fix
uncovers other problems, we will have to solve them as well, but
without regressing back to what we have now.



  reply	other threads:[~2015-08-06 16:21 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-05 15:46 Severe lossage from unread-command-events David Kastrup
2015-08-06 14:29 ` Eli Zaretskii
2015-08-06 15:01   ` David Kastrup
2015-08-06 15:25     ` Eli Zaretskii
2015-08-06 15:46       ` David Kastrup
2015-08-06 16:21         ` Eli Zaretskii [this message]
2015-08-07 16:08       ` Stefan Monnier
2015-08-07 16:41         ` David Kastrup
2015-08-08 15:14           ` raman
2015-08-07 18:13         ` Eli Zaretskii
2015-08-06 15:33     ` David Kastrup
2015-08-06 16:10       ` Eli Zaretskii
2015-08-06 16:16         ` David Kastrup
2015-08-06 18:47     ` David Kastrup
2015-08-06 20:00       ` David Kastrup
2015-08-10 16:56         ` David Kastrup
2015-08-10 17:35           ` Eli Zaretskii
2015-08-10 17:47             ` David Kastrup
2015-08-10 18:17               ` Eli Zaretskii
2015-08-10 18:34                 ` David Kastrup

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=83fv3ws80d.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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.