aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/frame.c12
-rw-r--r--src/keyboard.c16
3 files changed, 22 insertions, 13 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8d1bf78bdc4..638ca30e047 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
4 (init_keyboard): Set current_kboard's window-system to nil.
5 (tty_read_avail_input): Typo.
6 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
7
12007-10-31 Dan Nicolaescu <dann@ics.uci.edu> 82007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
2 9
3 * s/usg5-4.h: 10 * s/usg5-4.h:
diff --git a/src/frame.c b/src/frame.c
index a8efa11f728..b06b541d60c 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -513,17 +513,7 @@ make_initial_frame (void)
513 struct terminal *terminal; 513 struct terminal *terminal;
514 Lisp_Object frame; 514 Lisp_Object frame;
515 515
516#ifdef MULTI_KBOARD 516 eassert (initial_kboard);
517 /* Create the initial keyboard. */
518 if (!initial_kboard)
519 {
520 initial_kboard = (KBOARD *) xmalloc (sizeof (KBOARD));
521 init_kboard (initial_kboard);
522 /* Leave Vwindow_system at its `t' default for now. */
523 initial_kboard->next_kboard = all_kboards;
524 all_kboards = initial_kboard;
525 }
526#endif
527 517
528 /* The first call must initialize Vframe_list. */ 518 /* The first call must initialize Vframe_list. */
529 if (! (NILP (Vframe_list) || CONSP (Vframe_list))) 519 if (! (NILP (Vframe_list) || CONSP (Vframe_list)))
diff --git a/src/keyboard.c b/src/keyboard.c
index b98708534cd..23f2e6d53ff 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -7097,7 +7097,7 @@ tty_read_avail_input (struct terminal *terminal,
7097 int nread = 0; 7097 int nread = 0;
7098 7098
7099 if (!terminal->name) /* Don't read from a dead terminal. */ 7099 if (!terminal->name) /* Don't read from a dead terminal. */
7100 return; 7100 return 0;
7101 7101
7102 if (terminal->type != output_termcap) 7102 if (terminal->type != output_termcap)
7103 abort (); 7103 abort ();
@@ -11572,9 +11572,12 @@ init_keyboard ()
11572#ifdef MULTI_KBOARD 11572#ifdef MULTI_KBOARD
11573 current_kboard = initial_kboard; 11573 current_kboard = initial_kboard;
11574#endif 11574#endif
11575 /* Re-initialize the keyboard again. */
11575 wipe_kboard (current_kboard); 11576 wipe_kboard (current_kboard);
11576 init_kboard (current_kboard); 11577 init_kboard (current_kboard);
11577 /* Leave Vwindow_system at its `t' default for now. */ 11578 /* A value of nil for Vwindow_system normally means a tty, but we also use
11579 it for the initial terminal since there is no window system there. */
11580 current_kboard->Vwindow_system = Qnil;
11578 11581
11579 if (!noninteractive) 11582 if (!noninteractive)
11580 { 11583 {
@@ -12400,6 +12403,15 @@ and the Lisp function within which the error was signaled. */);
12400Help functions bind this to allow help on disabled menu items 12403Help functions bind this to allow help on disabled menu items
12401and tool-bar buttons. */); 12404and tool-bar buttons. */);
12402 Venable_disabled_menus_and_buttons = Qnil; 12405 Venable_disabled_menus_and_buttons = Qnil;
12406
12407#ifdef MULTI_KBOARD
12408 /* Create the initial keyboard. */
12409 initial_kboard = (KBOARD *) xmalloc (sizeof (KBOARD));
12410 init_kboard (initial_kboard);
12411 /* Vwindow_system is left at t for now. */
12412 initial_kboard->next_kboard = all_kboards;
12413 all_kboards = initial_kboard;
12414#endif
12403} 12415}
12404 12416
12405void 12417void