From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: macosx(carbon): slow keyboard responsiveness bug fix Date: Tue, 20 Nov 2007 11:53:34 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1195577636 13531 80.91.229.12 (20 Nov 2007 16:53:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Nov 2007 16:53:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: William Xu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 20 17:54:01 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IuWMK-0004aQ-Bj for ged-emacs-devel@m.gmane.org; Tue, 20 Nov 2007 17:54:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IuWM6-0004N8-5T for ged-emacs-devel@m.gmane.org; Tue, 20 Nov 2007 11:53:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IuWLz-0004LP-H5 for emacs-devel@gnu.org; Tue, 20 Nov 2007 11:53:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IuWLx-0004J6-3x for emacs-devel@gnu.org; Tue, 20 Nov 2007 11:53:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IuWLw-0004Ix-Rb for emacs-devel@gnu.org; Tue, 20 Nov 2007 11:53:36 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IuWLw-00007U-At for emacs-devel@gnu.org; Tue, 20 Nov 2007 11:53:36 -0500 Original-Received: from ceviche.home (vpn-132-204-232-139.acd.umontreal.ca [132.204.232.139]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id lAKGrY3t016468 for ; Tue, 20 Nov 2007 11:53:34 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 4370AB42DA; Tue, 20 Nov 2007 11:53:34 -0500 (EST) In-Reply-To: (William Xu's message of "Wed, 21 Nov 2007 00:04:12 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-NAI-Spam-Score: -2.5 X-NAI-Spam-Rules: 2 Rules triggered BAYES_00=-2.5, HAS_X_HELO=0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:83723 Archived-At: >> 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 "") (kbd "RET")) > | (global-set-key (kbd "") (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