|
From: | Jan Djärv |
Subject: | Re: Emacs 23 Mac port |
Date: | Tue, 12 Jan 2010 18:21:23 +0100 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 |
Stefan Monnier skrev 2010-01-12 15.15:
Thanks. But then a special event such as SIGUSR1 cancels an incomplete key sequence being typed. How about doing this only when the current buffer is changed by the special event?IIRC the general approach to these kinds of problems in read-key-sequence is to only recompute the initial state if the current key-sequence is still empty. I.e. rather than check whether the special event has changed current buffer, we would instead check whether the keybuf is still empty.
But that can be wrong too. In *scratch*: C-c <drop .c-file> C-e Jan D.
[Prev in Thread] | Current Thread | [Next in Thread] |