summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2008-09-20 13:06:43 +0000
committerEli Zaretskii <eliz@gnu.org>2008-09-20 13:06:43 +0000
commitd44004c0541ee1f42a1998d5330abaa010d47b2a (patch)
tree2de7cffbbd9a308ad5d10177a7be1abdfb33eca3
parent54e5f96269815d44c86b393025c6e11fab6ae5a5 (diff)
downloademacs-d44004c0541ee1f42a1998d5330abaa010d47b2a.tar.gz
(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.
-rw-r--r--src/ChangeLog8
-rw-r--r--src/keyboard.c14
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 @@
+2008-09-20 Eli Zaretskii <eliz@gnu.org>
+
+ * keyboard.c (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.
+
2008-09-19 Eli Zaretskii <eliz@gnu.org>
* 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 ()
cancel_echoing ();
/* XXX This code needs to be revised for multi-tty support. */
- if (!NILP (Vquit_flag)
-#ifndef MSDOS
- && get_named_tty ("/dev/tty")
-#endif
- )
+ if (!NILP (Vquit_flag) && get_named_tty ("/dev/tty"))
{
/* If SIGINT isn't blocked, don't let us be interrupted by
another SIGINT, it might be harmful due to non-reentrancy
@@ -11172,7 +11168,7 @@ See also `current-input-mode'. */)
{
struct terminal *t = get_terminal (terminal, 1);
struct tty_display_info *tty;
- if (t == NULL || t->type != output_termcap)
+ if (t == NULL || (t->type != output_termcap && t->type != output_msdos_raw))
return Qnil;
tty = t->display_info.tty;
@@ -11217,7 +11213,7 @@ See also `current-input-mode'. */)
struct tty_display_info *tty;
int new_meta;
- if (t == NULL || t->type != output_termcap)
+ if (t == NULL || (t->type != output_termcap && t->type != output_msdos_raw))
return Qnil;
tty = t->display_info.tty;
@@ -11257,7 +11253,7 @@ See also `current-input-mode'. */)
{
struct terminal *t = get_named_tty ("/dev/tty");
struct tty_display_info *tty;
- if (t == NULL || t->type != output_termcap)
+ if (t == NULL || (t->type != output_termcap && t->type != output_msdos_raw))
return Qnil;
tty = t->display_info.tty;
@@ -11321,7 +11317,7 @@ The elements of this list correspond to the arguments of
struct frame *sf = XFRAME (selected_frame);
val[0] = interrupt_input ? Qt : Qnil;
- if (FRAME_TERMCAP_P (sf))
+ if (FRAME_TERMCAP_P (sf) || FRAME_MSDOS_P (sf))
{
val[1] = FRAME_TTY (sf)->flow_control ? Qt : Qnil;
val[2] = (FRAME_TTY (sf)->meta_key == 2