# HG changeset patch # User Stefan Monnier # Date 1222812375 0 # Node ID c6a1d36b73879a907d5f2874fc9b7cc49cc9deca # Parent d35e240a46223ce773646eeee0ae97faa9a6d695 (Fsend_string_to_terminal): Don't try to send a string to a suspended terminal. diff -r d35e240a4622 -r c6a1d36b7387 src/ChangeLog --- 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 + + * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to + a suspended terminal. + 2008-09-30 Michael Albinus * dbusbind.c (xd_signature): Use strcat instead of sprintf. @@ -30,13 +35,11 @@ 2008-09-28 Dan Nicolaescu - * 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 - * 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 diff -r d35e240a4622 -r c6a1d36b7387 src/dispnew.c --- 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);