From: CHENG Gao <chenggao@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: macosx(carbon): slow keyboard responsiveness bug fix
Date: Wed, 21 Nov 2007 01:11:26 +0800 [thread overview]
Message-ID: <m2abp8alkx.fsf@news.cyberhut.org> (raw)
In-Reply-To: m2zlxaldu3.fsf@gmail.com
*On Mon, 19 Nov 2007 19:38:44 +0900
* Also sprach William Xu <william.xwl@gmail.com>:
> 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
next prev parent reply other threads:[~2007-11-20 17:11 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
2007-11-20 17:58 ` Dan Nicolaescu
2007-11-21 8:59 ` William Xu
2007-11-20 17:11 ` CHENG Gao [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2abp8alkx.fsf@news.cyberhut.org \
--to=chenggao@gmail.com \
--cc=emacs-devel@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.