aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2007-09-20 21:27:01 +0000
committerStefan Monnier2007-09-20 21:27:01 +0000
commit59a7bc630dc4ed75fee06037afe86088afce21e5 (patch)
treea4abe2344800a871a697ad7707fe9ec819d32095 /src
parent597cc809d47854aa62d9a421a52a1c3b665e38f0 (diff)
downloademacs-59a7bc630dc4ed75fee06037afe86088afce21e5.tar.gz
emacs-59a7bc630dc4ed75fee06037afe86088afce21e5.zip
(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.
Diffstat (limited to 'src')
-rw-r--r--src/term.c9
1 files 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)
2118{ 2118{
2119 struct terminal *t = get_terminal (terminal, throw); 2119 struct terminal *t = get_terminal (terminal, throw);
2120 2120
2121 if (t && t->type == output_initial)
2122 return NULL;
2123
2124 if (t && t->type != output_termcap) 2121 if (t && t->type != output_termcap)
2125 { 2122 {
2126 if (throw) 2123 if (throw)
@@ -2269,7 +2266,7 @@ A suspended tty may be resumed by calling `resume-tty' on it. */)
2269 { 2266 {
2270 Lisp_Object args[2]; 2267 Lisp_Object args[2];
2271 args[0] = intern ("suspend-tty-functions"); 2268 args[0] = intern ("suspend-tty-functions");
2272 args[1] = make_number (t->id); 2269 XSETTERMINAL (args[1], t);
2273 Frun_hook_with_args (2, args); 2270 Frun_hook_with_args (2, args);
2274 } 2271 }
2275 } 2272 }
@@ -2334,7 +2331,7 @@ the currently selected frame. */)
2334 { 2331 {
2335 Lisp_Object args[2]; 2332 Lisp_Object args[2];
2336 args[0] = intern ("resume-tty-functions"); 2333 args[0] = intern ("resume-tty-functions");
2337 args[1] = make_number (t->id); 2334 XSETTERMINAL (args[1], t);
2338 Frun_hook_with_args (2, args); 2335 Frun_hook_with_args (2, args);
2339 } 2336 }
2340 } 2337 }
@@ -3783,7 +3780,7 @@ delete_tty (struct terminal *terminal)
3783 3780
3784 /* Protect against recursive calls. Fdelete_frame in 3781 /* Protect against recursive calls. Fdelete_frame in
3785 delete_terminal calls us back when it deletes our last frame. */ 3782 delete_terminal calls us back when it deletes our last frame. */
3786 if (terminal->deleted) 3783 if (!terminal->name)
3787 return; 3784 return;
3788 3785
3789 if (terminal->type != output_termcap) 3786 if (terminal->type != output_termcap)