emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs 23 Mac port


From: YAMAMOTO Mitsuharu
Subject: Re: Emacs 23 Mac port
Date: Wed, 13 Jan 2010 08:35:59 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

>>>>> On Tue, 12 Jan 2010 09:15:11 -0500, Stefan Monnier <address@hidden> said:

>> 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.

Well, at least, it seems to be much cleaner for read_char just to
return a special code (instead of -2) indicating a command is executed
via special event map, and let the caller determine what to do for
that case.

                                     YAMAMOTO Mitsuharu
                                address@hidden




reply via email to

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