# HG changeset patch # User Stefan Monnier # Date 1190323127 0 # Node ID 502394270fc6f8d79f10e17e690cf2681d0020ca # Parent 14682d9a9d3cef8c5e24ccf826ee110fa8fb295f (x_delete_terminal): Use terminal->name as liveness status. diff -r 14682d9a9d3c -r 502394270fc6 src/xfns.c --- a/src/xfns.c Thu Sep 20 21:18:23 2007 +0000 +++ b/src/xfns.c Thu Sep 20 21:18:47 2007 +0000 @@ -3108,8 +3108,8 @@ kb = &the_only_kboard; #endif - if (dpyinfo->terminal->deleted) - error ("Terminal is being deleted, can't create new frames on it"); + if (!dpyinfo->terminal->name) + error ("Terminal is not live, can't create new frames on it"); name = x_get_arg (dpyinfo, parms, Qname, "name", "Name", RES_TYPE_STRING); if (!STRINGP (name) @@ -4703,8 +4703,8 @@ check_x (); - if (dpyinfo->terminal->deleted) - error ("Terminal is being deleted, can't create new frames on it"); + if (!dpyinfo->terminal->name) + error ("Terminal is not live, can't create new frames on it"); parms = Fcopy_alist (parms);