diff options
| author | Eli Zaretskii | 2008-09-20 13:06:43 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2008-09-20 13:06:43 +0000 |
| commit | d44004c0541ee1f42a1998d5330abaa010d47b2a (patch) | |
| tree | 2de7cffbbd9a308ad5d10177a7be1abdfb33eca3 /src | |
| parent | 54e5f96269815d44c86b393025c6e11fab6ae5a5 (diff) | |
| download | emacs-d44004c0541ee1f42a1998d5330abaa010d47b2a.tar.gz emacs-d44004c0541ee1f42a1998d5330abaa010d47b2a.zip | |
(Fset_quit_char, Fset_input_meta_mode, Fset_output_flow_control)
(Fcurrent_input_mode): Support MSDOS frames as well as termcap frames.
(handle_interrupt): Remove "#ifndef MSDOS" around the call to get_named_tty.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/keyboard.c | 14 |
2 files changed, 13 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8b8d487c0f7..c9241258c22 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2008-09-20 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * keyboard.c (Fset_quit_char, Fset_input_meta_mode) | ||
| 4 | (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS | ||
| 5 | frames as well as termcap frames. | ||
| 6 | (handle_interrupt): Remove "#ifndef MSDOS" around the call to | ||
| 7 | get_named_tty. | ||
| 8 | |||
| 1 | 2008-09-19 Eli Zaretskii <eliz@gnu.org> | 9 | 2008-09-19 Eli Zaretskii <eliz@gnu.org> |
| 2 | 10 | ||
| 3 | * process.c (procfs_system_process_attributes): Fix cmdline in | 11 | * process.c (procfs_system_process_attributes): Fix cmdline in |
diff --git a/src/keyboard.c b/src/keyboard.c index cd18b91abf1..52ecf69a193 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -10966,11 +10966,7 @@ handle_interrupt () | |||
| 10966 | cancel_echoing (); | 10966 | cancel_echoing (); |
| 10967 | 10967 | ||
| 10968 | /* XXX This code needs to be revised for multi-tty support. */ | 10968 | /* XXX This code needs to be revised for multi-tty support. */ |
| 10969 | if (!NILP (Vquit_flag) | 10969 | if (!NILP (Vquit_flag) && get_named_tty ("/dev/tty")) |
| 10970 | #ifndef MSDOS | ||
| 10971 | && get_named_tty ("/dev/tty") | ||
| 10972 | #endif | ||
| 10973 | ) | ||
| 10974 | { | 10970 | { |
| 10975 | /* If SIGINT isn't blocked, don't let us be interrupted by | 10971 | /* If SIGINT isn't blocked, don't let us be interrupted by |
| 10976 | another SIGINT, it might be harmful due to non-reentrancy | 10972 | another SIGINT, it might be harmful due to non-reentrancy |
| @@ -11172,7 +11168,7 @@ See also `current-input-mode'. */) | |||
| 11172 | { | 11168 | { |
| 11173 | struct terminal *t = get_terminal (terminal, 1); | 11169 | struct terminal *t = get_terminal (terminal, 1); |
| 11174 | struct tty_display_info *tty; | 11170 | struct tty_display_info *tty; |
| 11175 | if (t == NULL || t->type != output_termcap) | 11171 | if (t == NULL || (t->type != output_termcap && t->type != output_msdos_raw)) |
| 11176 | return Qnil; | 11172 | return Qnil; |
| 11177 | tty = t->display_info.tty; | 11173 | tty = t->display_info.tty; |
| 11178 | 11174 | ||
| @@ -11217,7 +11213,7 @@ See also `current-input-mode'. */) | |||
| 11217 | struct tty_display_info *tty; | 11213 | struct tty_display_info *tty; |
| 11218 | int new_meta; | 11214 | int new_meta; |
| 11219 | 11215 | ||
| 11220 | if (t == NULL || t->type != output_termcap) | 11216 | if (t == NULL || (t->type != output_termcap && t->type != output_msdos_raw)) |
| 11221 | return Qnil; | 11217 | return Qnil; |
| 11222 | tty = t->display_info.tty; | 11218 | tty = t->display_info.tty; |
| 11223 | 11219 | ||
| @@ -11257,7 +11253,7 @@ See also `current-input-mode'. */) | |||
| 11257 | { | 11253 | { |
| 11258 | struct terminal *t = get_named_tty ("/dev/tty"); | 11254 | struct terminal *t = get_named_tty ("/dev/tty"); |
| 11259 | struct tty_display_info *tty; | 11255 | struct tty_display_info *tty; |
| 11260 | if (t == NULL || t->type != output_termcap) | 11256 | if (t == NULL || (t->type != output_termcap && t->type != output_msdos_raw)) |
| 11261 | return Qnil; | 11257 | return Qnil; |
| 11262 | tty = t->display_info.tty; | 11258 | tty = t->display_info.tty; |
| 11263 | 11259 | ||
| @@ -11321,7 +11317,7 @@ The elements of this list correspond to the arguments of | |||
| 11321 | struct frame *sf = XFRAME (selected_frame); | 11317 | struct frame *sf = XFRAME (selected_frame); |
| 11322 | 11318 | ||
| 11323 | val[0] = interrupt_input ? Qt : Qnil; | 11319 | val[0] = interrupt_input ? Qt : Qnil; |
| 11324 | if (FRAME_TERMCAP_P (sf)) | 11320 | if (FRAME_TERMCAP_P (sf) || FRAME_MSDOS_P (sf)) |
| 11325 | { | 11321 | { |
| 11326 | val[1] = FRAME_TTY (sf)->flow_control ? Qt : Qnil; | 11322 | val[1] = FRAME_TTY (sf)->flow_control ? Qt : Qnil; |
| 11327 | val[2] = (FRAME_TTY (sf)->meta_key == 2 | 11323 | val[2] = (FRAME_TTY (sf)->meta_key == 2 |