changeset 98438:c6a1d36b7387

(Fsend_string_to_terminal): Don't try to send a string to a suspended terminal.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 30 Sep 2008 22:06:15 +0000
parents d35e240a4622
children 90863e3da520
files src/ChangeLog src/dispnew.c
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Sep 30 21:59:26 2008 +0000
+++ b/src/ChangeLog	Tue Sep 30 22:06:15 2008 +0000
@@ -1,3 +1,8 @@
+2008-09-30  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
+	a suspended terminal.
+
 2008-09-30  Michael Albinus  <michael.albinus@gmx.de>
 
 	* dbusbind.c (xd_signature): Use strcat instead of sprintf.
@@ -30,13 +35,11 @@
 
 2008-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
 
-	* dispnew.c (init_display): Return earlier when running as a
-	daemon.
+	* dispnew.c (init_display): Return earlier when running as a daemon.
 
 2008-09-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
 
-	* nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from,
-	etc.).
+	* nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
 
 2008-09-27  Eli Zaretskii  <eliz@gnu.org>
 
--- a/src/dispnew.c	Tue Sep 30 21:59:26 2008 +0000
+++ b/src/dispnew.c	Tue Sep 30 22:06:15 2008 +0000
@@ -6465,6 +6465,9 @@
 
   tty = t->display_info.tty;
 
+  if (! tty->output)
+    error ("Terminal is currently suspended");
+
   if (tty->termscript)
     {
       fwrite (SDATA (string), 1, SBYTES (string), tty->termscript);