unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: William Xu <william.xwl@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: macosx(carbon): slow keyboard responsiveness bug fix
Date: Tue, 20 Nov 2007 11:53:34 -0500	[thread overview]
Message-ID: <jwvhcjgx3qd.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m2sl31x8k3.fsf@gmail.com> (William Xu's message of "Wed, 21 Nov 2007 00:04:12 +0900")

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

  parent reply	other threads:[~2007-11-20 16:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-19 10:38 macosx(carbon): slow keyboard responsiveness bug fix William Xu
2007-11-19 15:00 ` Stefan Monnier
2007-11-20 15:04   ` William Xu
2007-11-20 15:56     ` Andreas Schwab
2007-11-20 16:53     ` Stefan Monnier [this message]
2007-11-20 17:58       ` Dan Nicolaescu
2007-11-21  8:59         ` William Xu
2007-11-20 17:11 ` CHENG Gao
2007-11-20 17:52   ` CHENG Gao
2007-11-20 23:32   ` Andreas Schwab
2007-11-21  0:38     ` YAMAMOTO Mitsuharu
2007-11-21  2:55       ` CHENG Gao
2007-11-21  4:05       ` William Xu
2007-11-21  2:46     ` CHENG Gao
2007-11-21  4:12   ` William Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvhcjgx3qd.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=william.xwl@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).