GNU bug report logs - #31692
aggressive-indent-mode causes Emacs to sometimes drop key events

Previous Next

Package: emacs;

Reported by: Radon Rosborough <radon.neon <at> gmail.com>

Date: Sun, 3 Jun 2018 02:23:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #61 received at 31692 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: radon.neon <at> gmail.com, 31692 <at> debbugs.gnu.org
Subject: Re: bug#31692: Emacs sometimes drops key events
Date: Wed, 06 Jun 2018 04:58:31 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Does it produce the character you type, though?  Because if it
> doesn't, then whether or not you see "Quit" doesn't matter much, IMO,
> at least not for the main issue at hand.

Hmm, right, it doesn't.

But I do not only see the issue in the aggressive-indent-mode, but also
an issue in Emacs...you don't?

For `aggressive-indent-mode' - I think they should use an idle timer:
Add something to `post-command-hook' that activates the timer, or resets
the idle time when the timer is already there.  When the timer fires,
you don't need `sit-for' - and the problem only occurs when
`while-no-input' and `sit-for' are combined.  The timer just calls the
aggressive indent function wrapped in `while-no-input'.


Michael.




This bug report was last modified 7 years and 19 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.