aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorStefan Monnier2007-10-31 19:25:32 +0000
committerStefan Monnier2007-10-31 19:25:32 +0000
commit1bc973c2e4e89685a760187f76f4aeec9799b972 (patch)
treee254f90d59286ff87ea772d0062f1196427cf83d /src/keyboard.c
parent8ac56013fbde96500613fb57ce38d501a9b7252f (diff)
downloademacs-1bc973c2e4e89685a760187f76f4aeec9799b972.tar.gz
emacs-1bc973c2e4e89685a760187f76f4aeec9799b972.zip
* keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
(init_keyboard): Set current_kboard's window-system to nil. (tty_read_avail_input): Typo. * frame.c (make_initial_frame): Don't initialize the initial_kboard.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c16
1 files changed, 14 insertions, 2 deletions
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