emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange behavior of C-u in the presence of sit-for in p-c-h


From: Stefan Monnier
Subject: Re: Strange behavior of C-u in the presence of sit-for in p-c-h
Date: Wed, 18 Oct 2006 11:23:08 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Which minor mode is that?

haskell-doc-mode

> It could avoid performing the sit-for during universal-argument:
>   (unless (eq this-command 'universal-argument)
>     (sit-for 0.5))

Oh, I see.  Well, in the case of haskell-doc-mode, the better fix is to use
an idle-timer rather than a post-command-hook.  But it's still a weird bug
introduced in Emacs-22 (it was there before, but the sit-for changes made
it appear in more cases).

> Or can you think of a safe way to change the keyboard.c code?

Add a parameter to this-command-keys which, if non-nil causes it to return
all keys, even those that were `reread'.
Then use this new parameter in universal-argument.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]