(Fsend_string_to_terminal): Don't try to send a string to a suspended terminal.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 30 Sep 2008 22:06:15 +0000 (22:06 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 30 Sep 2008 22:06:15 +0000 (22:06 +0000)
src/ChangeLog
src/dispnew.c

index 8007e94..5d3972c 100644 (file)
@@ -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.
 
 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>
 
index 307515f..33bbdca 100644 (file)
@@ -6465,6 +6465,9 @@ currently selected frame.  */)
 
   tty = t->display_info.tty;
 
+  if (! tty->output)
+    error ("Terminal is currently suspended");
+
   if (tty->termscript)
     {
       fwrite (SDATA (string), 1, SBYTES (string), tty->termscript);