From: Psionic K <psionik@positron.solutions>
To: help-gnu-emacs@gnu.org
Subject: differentiating real and fake command events
Date: Sat, 14 Dec 2024 18:19:17 +0900 [thread overview]
Message-ID: <CADQMGAQm9g_7cOddti_HEZiApyh36mJjQNhhHoVGaPjbNCydQw@mail.gmail.com> (raw)
I'm adding macro playback support to dslide. My first pass is workable but
not literally fool proof.
The implementation sets `unread-command-events' using a recursive timer
function. This was the first implementation I found that wouldn't eat the
events, as `sit-for' etc enjoy doing. I would prefer a blocking
implementation to prevent any input from my playback to help save users
from screwing up.
If no blocking approach is feasible, I need ways to decide if the user
pressed a key. I need to block this key if possible, but at least with
detection I can begin some recovery strategy.
next reply other threads:[~2024-12-14 9:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-14 9:19 Psionic K [this message]
2024-12-14 14:14 ` differentiating real and fake command events Stefan Monnier via Users list for the GNU Emacs text editor
-- strict thread matches above, loose matches on Subject: below --
2024-12-15 6:00 Psionic K
2024-12-15 23:32 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-12-16 7:44 ` mbork
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADQMGAQm9g_7cOddti_HEZiApyh36mJjQNhhHoVGaPjbNCydQw@mail.gmail.com \
--to=psionik@positron.solutions \
--cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).