diff options
| author | Dmitry Antipov | 2013-10-10 10:48:42 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-10-10 10:48:42 +0400 |
| commit | 1afcba638a6ecf9fe6db1e52594024b323d4145e (patch) | |
| tree | f43c87166dc7ca92b95294029ff23cf71295a8fe /src/term.c | |
| parent | 20832de03e2f5f7a98f97e3f1ae5f03f26d00b77 (diff) | |
| download | emacs-1afcba638a6ecf9fe6db1e52594024b323d4145e.tar.gz emacs-1afcba638a6ecf9fe6db1e52594024b323d4145e.zip | |
* keyboard.c (init_kboard): Now static. Add arg
to denote window system. Adjust comment.
(init_keyboard): Adjust user.
(allocate_kboard): New function.
(syms_of_keyboard):
* nsterm.m (ns_term_init):
* term.c (init_tty):
* w32term.c (w32_create_terminal):
* xterm.c (x_term_init): Use it.
* keyboard.h (init_kboard): Remove prototype.
(allocate_kboard): Add prototype.
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/term.c b/src/term.c index ad2e90dc795..a8274b19d2a 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -4301,11 +4301,7 @@ use the Bourne shell command `TERM=... export TERM' (C-shell:\n\ | |||
| 4301 | tty->mouse_highlight.mouse_face_window = Qnil; | 4301 | tty->mouse_highlight.mouse_face_window = Qnil; |
| 4302 | #endif | 4302 | #endif |
| 4303 | 4303 | ||
| 4304 | terminal->kboard = xmalloc (sizeof *terminal->kboard); | 4304 | terminal->kboard = allocate_kboard (Qnil); |
| 4305 | init_kboard (terminal->kboard); | ||
| 4306 | kset_window_system (terminal->kboard, Qnil); | ||
| 4307 | terminal->kboard->next_kboard = all_kboards; | ||
| 4308 | all_kboards = terminal->kboard; | ||
| 4309 | terminal->kboard->reference_count++; | 4305 | terminal->kboard->reference_count++; |
| 4310 | /* Don't let the initial kboard remain current longer than necessary. | 4306 | /* Don't let the initial kboard remain current longer than necessary. |
| 4311 | That would cause problems if a file loaded on startup tries to | 4307 | That would cause problems if a file loaded on startup tries to |