From: David Kastrup <dak@gnu.org>
To: emacs-devel@gnu.org
Subject: Manipulating unread-command-events
Date: Wed, 15 Jul 2015 15:24:21 +0200 [thread overview]
Message-ID: <87io9lfta2.fsf@fencepost.gnu.org> (raw)
Hi,
I have a package creating events for Midi input and it works by pushing
the created events into unread-command-events, sometimes several events
in one go. This works only so-so, and particularly badly when recording
in keyboard macros (not only there, but the lossage there is much worse
than elsewhere).
If you do
git grep '(setq unread-command-events'
in the Emacs sources, it's rather obvious that _lots_ of Emacs internals
do not bother retaining any pending input in unread-command-events and
just plaster over whatever might have been stored there before. When
looking closer at all of the resulting lines, it is rather the majority
of uses which overwrite any pending input there (the situation looks
slightly worse than it is because some good uses employ `push' rather
than `setq', but not all that many).
Any idea how to salvage that situation? As it is, keyboard macro
recording is unusable when input is delivered from non-keyboard sources.
It probably loses about 10% of input for simultaneously delivered
events.
--
David Kastrup
reply other threads:[~2015-07-15 13:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87io9lfta2.fsf@fencepost.gnu.org \
--to=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.