From 59a7bc630dc4ed75fee06037afe86088afce21e5 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 20 Sep 2007 21:27:01 +0000 Subject: [PATCH] (get_tty_terminal): Don't treat output_initial specially. (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints. (delete_tty): Use terminal->name as liveness status. --- src/term.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/term.c b/src/term.c index 144b14a1e3f..e212259cef8 100644 --- a/src/term.c +++ b/src/term.c @@ -2118,9 +2118,6 @@ get_tty_terminal (Lisp_Object terminal, int throw) { struct terminal *t = get_terminal (terminal, throw); - if (t && t->type == output_initial) - return NULL; - if (t && t->type != output_termcap) { if (throw) @@ -2269,7 +2266,7 @@ A suspended tty may be resumed by calling `resume-tty' on it. */) { Lisp_Object args[2]; args[0] = intern ("suspend-tty-functions"); - args[1] = make_number (t->id); + XSETTERMINAL (args[1], t); Frun_hook_with_args (2, args); } } @@ -2334,7 +2331,7 @@ the currently selected frame. */) { Lisp_Object args[2]; args[0] = intern ("resume-tty-functions"); - args[1] = make_number (t->id); + XSETTERMINAL (args[1], t); Frun_hook_with_args (2, args); } } @@ -3783,7 +3780,7 @@ delete_tty (struct terminal *terminal) /* Protect against recursive calls. Fdelete_frame in delete_terminal calls us back when it deletes our last frame. */ - if (terminal->deleted) + if (!terminal->name) return; if (terminal->type != output_termcap) -- 2.39.5