|
| From: | Chong Yidong |
| Subject: | Re: Strange behavior of C-u in the presence of sit-for in p-c-h |
| Date: | Wed, 18 Oct 2006 10:28:50 -0400 |
| User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> Given that the code has been around for 8 years, changing it at
>> this point in the release process might be a disaster. It's not
>> even clear to me what TRT is in this case. I suggest leaving the
>> current behavior as it is for Emacs 22; any user-level Lisp code
>> that bumps into this can quite easily work around it by checking if
>> this-command is eq to universal-argument.
>
> Huh? The problem came up because of a minor mode who uses
> post-command-hook with a sit-for inside. How do you suggest to work
> around this problem?
Which minor mode is that? It could avoid performing the sit-for
during universal-argument:
(unless (eq this-command 'universal-argument)
(sit-for 0.5))
Or can you think of a safe way to change the keyboard.c code?
| [Prev in Thread] | Current Thread | [Next in Thread] |