emacs-devel
[Top][All Lists]
Advanced

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

Re: macosx(carbon): slow keyboard responsiveness bug fix


From: Stefan Monnier
Subject: Re: macosx(carbon): slow keyboard responsiveness bug fix
Date: Tue, 20 Nov 2007 11:53:34 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

>> Could you try and arange for the Mac OS X to work with MULTI_KBOARD?
>> It shouldn't be difficult (because even though the generic Emacs code
>> then supports multiple keyboards, the Mac OS X part of the code can
>> still choose to only create a single keyboard and work the same as
>> before).

> Hmm, it turns out easy. Just enable it, then works fairly well. :P 

I didn't dare to suggest that it might work ;-)

> Well, there's one problem. Some special keys become undefined, like tab,
> return, esc. Do you have an idea what might cause this? The following is
> a workaround for this: 

> ,----
> | (global-set-key (kbd "<return>") (kbd "RET"))
> | (global-set-key (kbd "<tab>") (kbd "TAB"))
> `----

These should be set up in function-key-map (or local-function-key-map).
I think the problem might be that mac-win.el sets them up in
local-function-key-map directly from the file's top-level whereas it
should probably do it from the mac-initialize-window-system function.

Take a look at how x-win.el does it: it defines a x-alternatives-map and
then activates it in x-initialize-window-system.  mac-win.el should do
the same (search for "[return]" in both files to see where/how the
binding is created).


        Stefan






reply via email to

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