all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* macosx(carbon): slow keyboard responsiveness bug fix
@ 2007-11-19 10:38 William Xu
  2007-11-19 15:00 ` Stefan Monnier
  2007-11-20 17:11 ` CHENG Gao
  0 siblings, 2 replies; 15+ messages in thread
From: William Xu @ 2007-11-19 10:38 UTC (permalink / raw)
  To: emacs-devel

Latest cvs trunk works on macosx again, finally ! 

This bug is introduced in: 

,----[ src/macterm.c ]
| Revision 1.237 - (view) (download) (as text) (annotate) - [select for diffs]
| Thu Oct 25 02:38:38 2007 UTC (3 weeks, 4 days ago) by monnier
| Branch: MAIN
| CVS Tags: lexbind-base
| Changes since 1.236: +20 -0 lines
| Diff to previous 1.236
| 
| Make `window-system' into a keyboard-local variable (rather than
| frame-local as done originally by multi-tty).
| 
| * startup.el (window-system): Remove.  Don't make it frame-local.
| 
| * keyboard.h (struct kboard): Add Vwindow_system.
| * keyboard.c (init_kboard): Set a default for Vwindow_system.
| (mark_kboards): Mark Vwindow_system.
| 
| * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
| (init_display): Don't set the obsolete `window-system' frame-param.
| 
| * xterm.c (x_term_init):
| * w32term.c (w32_create_terminal):
| * term.c (init_tty): Set Vwindow_system.
| * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
| multi-tty merge maybe?), copied from w32term.c.  Set Vwindow_system.
| 
| * xfns.c (Fx_create_frame, x_create_tip_frame):
| * w32fns.c (Fx_create_frame, x_create_tip_frame):
| * macfns.c (Fx_create_frame):
| Don't set the obsolete `window-system' frame-param.
| 
| * frame.h (Qwindow_system): Remove.
| * frame.c (Qwindow_system): Remove.  In `syms_of_frame' as well.
| (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
`----

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;

-- 
William

http://williamxu.net9.org

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-11-21  8:59 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.