From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: CHENG Gao Newsgroups: gmane.emacs.devel Subject: Re: macosx(carbon): slow keyboard responsiveness bug fix Date: Wed, 21 Nov 2007 01:11:26 +0800 Organization: cyberhut.org Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1195578979 19127 80.91.229.12 (20 Nov 2007 17:16:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Nov 2007 17:16:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 20 18:16:16 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 1IuWhP-0005Ny-J1 for ged-emacs-devel@m.gmane.org; Tue, 20 Nov 2007 18:15:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IuWhB-0005z9-KF for ged-emacs-devel@m.gmane.org; Tue, 20 Nov 2007 12:15:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IuWgq-0005cd-9F for emacs-devel@gnu.org; Tue, 20 Nov 2007 12:15:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IuWgp-0005aq-Ah for emacs-devel@gnu.org; Tue, 20 Nov 2007 12:15:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IuWgo-0005aa-QP for emacs-devel@gnu.org; Tue, 20 Nov 2007 12:15:10 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IuWgo-0001j7-GU for emacs-devel@gnu.org; Tue, 20 Nov 2007 12:15:10 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1IuWgg-000408-Or for emacs-devel@gnu.org; Tue, 20 Nov 2007 17:15:02 +0000 Original-Received: from 222.94.199.130 ([222.94.199.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Nov 2007 17:15:02 +0000 Original-Received: from chenggao by 222.94.199.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Nov 2007 17:15:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 66 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 222.94.199.130 User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (darwin) Cancel-Lock: sha1:w4KomB+8YN0Ad+Tw9h63jV7CYL0= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:83725 Archived-At: *On Mon, 19 Nov 2007 19:38:44 +0900 * Also sprach William Xu : > Latest cvs trunk works on macosx again, finally ! [...] > After window-system is changed from frame-local to terminal-local > variable, since macosx doesn't support MULTI_KBOARD, it looks like the > window-system misses a chance to be properly set.(leaving it as t by > default) I doubt other platforms that not yet support MULTI_KBOARD could > have a similar problem. > > Index: src/macterm.c > =================================================================== > RCS file: /sources/emacs/emacs/src/macterm.c,v > retrieving revision 1.238 > diff -u -r1.238 macterm.c > --- src/macterm.c 1 Nov 2007 03:46:14 -0000 1.238 > +++ src/macterm.c 19 Nov 2007 10:28:13 -0000 > @@ -12772,7 +12772,7 @@ > mac_create_terminal (struct mac_display_info *dpyinfo) > { > struct terminal *terminal; > - > + > terminal = create_terminal (); > > terminal->type = output_mac; > @@ -12838,6 +12838,9 @@ > if (current_kboard == initial_kboard) > current_kboard = terminal->kboard; > terminal->kboard->reference_count++; > +#else > + KBOARD *kbp = &the_only_kboard; > + kbp->Vwindow_system = intern ("mac"); > #endif > > return terminal; I applied your patch (as mentioned above), and reverted mac_unicode_keystroke_event in macterm.c to previously correct version, and edited frame.c as below: ,---- | #ifdef USE_FONT_BACKEND | /* Give chance to each font driver to free a frame specific data. */ | font_update_drivers (f, Qnil); | #endif /* USE_FONT_BACKEND */ `---- then ./configure --enable-carbon-app export LIBS=-lresolv (to solve Undefined symbols: _res_init_9) make bootstrap I got a successful build of emacs-unicode-2 branch (latest cvs), but key.mouse respond is still slow and unusable. But I DO FEEL it's not slow as before. Just still unusably slow. You said this solved the problem for TRUNK. I just wonder why it does not work for unicode-2 branch. I read discussions about this problem, and seems the conclusion is the problem is the same for TRUNK and unicode-2 branch. (same reason, and I suppose same solution.) -- Ubi bene, ibi patria