GNU bug report logs - #11088
24.0.94; minor mode cannot be cleanly turned off in idle timer

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Sun, 25 Mar 2012 15:04:02 UTC

Severity: normal

Merged with 4081, 4093, 10459

Found in version 24.0.94

Fixed in version 24.4

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Leo <sdl.web <at> gmail.com>
Cc: 11088 <at> debbugs.gnu.org
Subject: bug#11088: 24.0.94; minor mode cannot be cleanly turned off in idle timer
Date: Mon, 26 Mar 2012 14:03:40 -0400
>> It's a known problem: the set of active keymaps is computed before Emacs
>> starts waiting for the next key-sequence and is not recomputed after
>> running idle timers and process filters.

> Could you document this limitation in run-with-timer or
> run-with-idle-timer?  I could do it but I might not understand the
> problem well. Thanks.

I don't think it's worth the trouble to try and document the problem
everywhere where it might appear (timers, process filters, process
sentinels, or any code run by them such as font-lock code, ...).

Better would be to fix it (basically, delay the initialization of
nmaps/submaps/defs in keyboard.c:read_key_sequence to after we did the
first "read_char").


        Stefan




This bug report was last modified 10 years and 231 days ago.

Previous Next


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