From: Michael Heerdegen <michael_heerdegen@web.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: radon.neon@gmail.com, 31692@debbugs.gnu.org, monnier@IRO.UMontreal.CA
Subject: bug#31692: Emacs sometimes drops key events
Date: Fri, 06 Jul 2018 19:43:04 +0200 [thread overview]
Message-ID: <87k1q845w7.fsf@web.de> (raw)
In-Reply-To: <83o9flmqk0.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 05 Jul 2018 22:27:11 +0300")
[-- Attachment #1: Type: text/plain, Size: 999 bytes --]
Eli Zaretskii <eliz@gnu.org> writes:
> I don't think you can reliably rebind C-g. For starters, it produces
> SIGINT on TTY frames, so I think rebinding will have no effect, at
> least in that use case.
I think you misunderstood. My fix was not to rebind C-g.
With our fix, hitting C-g while `sit-for' waits inside a
`while-no-input' makes the latter throw a 'quit' signal. I can use
`condition-case' to catch that quit, and call the actual binding of C-g
(or just a hardcoded `abort-recursive-edit').
> Anyway, can you show some Lisp to reproduce the issue?
Here is a template. To try it, call `read-test-input'. To see that C-g
is not always running as expected, hit C-g while a sit-for is running
(i.g. when the hint is shown).
`read-test-input' reads in input and tries to do something: in this
example counts words in the current buffer (which is interruptable) and
uses an overlay to show a message in the minibuffer, which is
automatically removed after a `sit-for' has finished.
[-- Attachment #2: testcase.el --]
[-- Type: application/emacs-lisp, Size: 1701 bytes --]
[-- Attachment #3: Type: text/plain, Size: 11 bytes --]
Michael.
next prev parent reply other threads:[~2018-07-06 17:43 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-03 2:21 bug#31692: Emacs sometimes drops key events Radon Rosborough
2018-06-03 2:36 ` Eli Zaretskii
2018-06-03 4:54 ` Radon Rosborough
2018-06-03 15:05 ` Eli Zaretskii
2018-06-03 19:23 ` Alan Third
2018-06-04 10:41 ` João Távora
2018-06-05 0:59 ` Michael Heerdegen
2018-06-05 2:37 ` Eli Zaretskii
2018-06-05 2:41 ` Radon Rosborough
2018-06-05 4:11 ` Eli Zaretskii
2018-06-05 21:40 ` Michael Heerdegen
2018-06-06 2:37 ` Eli Zaretskii
2018-06-06 2:58 ` Michael Heerdegen
2018-06-06 14:52 ` Eli Zaretskii
2018-06-06 23:12 ` Michael Heerdegen
2018-06-07 15:20 ` Eli Zaretskii
2018-06-06 14:45 ` Eli Zaretskii
2018-06-06 22:50 ` Michael Heerdegen
2018-06-07 15:20 ` Eli Zaretskii
2018-06-07 15:30 ` Stefan Monnier
2018-06-07 15:52 ` Eli Zaretskii
2018-06-07 18:44 ` Stefan Monnier
2018-06-08 22:17 ` Michael Heerdegen
2018-06-11 21:08 ` Michael Heerdegen
2018-06-12 2:27 ` Eli Zaretskii
2018-06-16 8:26 ` Eli Zaretskii
2018-06-16 8:28 ` Eli Zaretskii
2018-06-17 4:39 ` Michael Heerdegen
2018-07-05 19:07 ` Michael Heerdegen
2018-07-05 19:27 ` Eli Zaretskii
2018-07-06 17:43 ` Michael Heerdegen [this message]
2018-06-05 2:48 ` Michael Heerdegen
2018-06-05 4:13 ` Eli Zaretskii
2018-06-05 11:57 ` Noam Postavsky
2018-06-05 14:31 ` Eli Zaretskii
2018-06-05 21:39 ` Artur Malabarba
2018-06-06 14:39 ` Eli Zaretskii
2018-06-03 12:13 ` Noam Postavsky
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=87k1q845w7.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=31692@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=monnier@IRO.UMontreal.CA \
--cc=radon.neon@gmail.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).