diff options
| author | Jason Rumney | 2007-09-04 22:32:09 +0000 |
|---|---|---|
| committer | Jason Rumney | 2007-09-04 22:32:09 +0000 |
| commit | 953bf0dce8618108b663edfd820bba5e8a07ce24 (patch) | |
| tree | 7202b5c76a37451e61a8de5c570f133f6378d197 /src | |
| parent | 79af260ec49b3379d48b8e6325ff384a43585f87 (diff) | |
| download | emacs-953bf0dce8618108b663edfd820bba5e8a07ce24.tar.gz emacs-953bf0dce8618108b663edfd820bba5e8a07ce24.zip | |
(init_tty) [WINDOWSNT]: Pass terminal to
initialize_w32_display.
(init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/term.c | 9 |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 94fdc7a2e4d..9345aa548bd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2007-09-04 Jason Rumney <jasonr@gnu.org> | 1 | 2007-09-04 Jason Rumney <jasonr@gnu.org> |
| 2 | 2 | ||
| 3 | * w32console.c (one_and_only_w32cons): Remove. | ||
| 4 | (initialize_w32_display): Take terminal argument. | ||
| 5 | |||
| 6 | * term.c (init_tty) [WINDOWSNT]: Pass terminal to | ||
| 7 | initialize_w32_display. | ||
| 8 | (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too. | ||
| 9 | |||
| 3 | * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event. | 10 | * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event. |
| 4 | 11 | ||
| 5 | * keyboard.c (discard_mouse_events): Discard it. | 12 | * keyboard.c (discard_mouse_events): Discard it. |
diff --git a/src/term.c b/src/term.c index f7b8eb50ac7..9d659edaa5f 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -3272,7 +3272,7 @@ init_tty (char *name, char *terminal_type, int must_succeed) | |||
| 3272 | #endif | 3272 | #endif |
| 3273 | 3273 | ||
| 3274 | #ifdef WINDOWSNT | 3274 | #ifdef WINDOWSNT |
| 3275 | initialize_w32_display (); | 3275 | initialize_w32_display (terminal); |
| 3276 | 3276 | ||
| 3277 | /* XXX Can this be non-null? */ | 3277 | /* XXX Can this be non-null? */ |
| 3278 | if (name) | 3278 | if (name) |
| @@ -3315,7 +3315,6 @@ init_tty (char *name, char *terminal_type, int must_succeed) | |||
| 3315 | 3315 | ||
| 3316 | tty->TN_max_colors = 16; /* Required to be non-zero for tty-display-color-p */ | 3316 | tty->TN_max_colors = 16; /* Required to be non-zero for tty-display-color-p */ |
| 3317 | 3317 | ||
| 3318 | return terminal; | ||
| 3319 | #else /* not WINDOWSNT */ | 3318 | #else /* not WINDOWSNT */ |
| 3320 | 3319 | ||
| 3321 | Wcm_clear (tty); | 3320 | Wcm_clear (tty); |
| @@ -3483,6 +3482,7 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.", | |||
| 3483 | tty->TF_underscore = tgetflag ("ul"); | 3482 | tty->TF_underscore = tgetflag ("ul"); |
| 3484 | tty->TF_teleray = tgetflag ("xt"); | 3483 | tty->TF_teleray = tgetflag ("xt"); |
| 3485 | 3484 | ||
| 3485 | #endif /* !WINDOWSNT */ | ||
| 3486 | #ifdef MULTI_KBOARD | 3486 | #ifdef MULTI_KBOARD |
| 3487 | terminal->kboard = (KBOARD *) xmalloc (sizeof (KBOARD)); | 3487 | terminal->kboard = (KBOARD *) xmalloc (sizeof (KBOARD)); |
| 3488 | init_kboard (terminal->kboard); | 3488 | init_kboard (terminal->kboard); |
| @@ -3494,9 +3494,12 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.", | |||
| 3494 | prompt in the mini-buffer. */ | 3494 | prompt in the mini-buffer. */ |
| 3495 | if (current_kboard == initial_kboard) | 3495 | if (current_kboard == initial_kboard) |
| 3496 | current_kboard = terminal->kboard; | 3496 | current_kboard = terminal->kboard; |
| 3497 | #ifndef WINDOWSNT | ||
| 3497 | term_get_fkeys (address, terminal->kboard); | 3498 | term_get_fkeys (address, terminal->kboard); |
| 3498 | #endif | 3499 | #endif |
| 3500 | #endif | ||
| 3499 | 3501 | ||
| 3502 | #ifndef WINDOWSNT | ||
| 3500 | /* Get frame size from system, or else from termcap. */ | 3503 | /* Get frame size from system, or else from termcap. */ |
| 3501 | { | 3504 | { |
| 3502 | int height, width; | 3505 | int height, width; |
| @@ -3718,9 +3721,9 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.", | |||
| 3718 | 3721 | ||
| 3719 | /* Init system terminal modes (RAW or CBREAK, etc.). */ | 3722 | /* Init system terminal modes (RAW or CBREAK, etc.). */ |
| 3720 | init_sys_modes (tty); | 3723 | init_sys_modes (tty); |
| 3724 | #endif /* not WINDOWSNT */ | ||
| 3721 | 3725 | ||
| 3722 | return terminal; | 3726 | return terminal; |
| 3723 | #endif /* not WINDOWSNT */ | ||
| 3724 | } | 3727 | } |
| 3725 | 3728 | ||
| 3726 | /* Auxiliary error-handling function for init_tty. | 3729 | /* Auxiliary error-handling function for init_tty. |