diff src/keyboard.c @ 83173:6b4b299e2cd5

Fix suspend-frame on the controlling tty (reported by Dan Nicolaescu). * src/term.c (Fdisplay_controlling_tty_p): New function. * src/term.c (syms_of_term): Initialize Sdisplay_controlling_tty_p. * lisp/frame.el (suspend-frame): Use display-controlling-tty-p to decide between suspend-emacs and suspend-tty. * src/keyboard.c (Fsuspend_emacs): Give a better error message when there are multiple open tty devices. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-213
author Karoly Lorentey <lorentey@elte.hu>
date Sat, 10 Jul 2004 21:21:04 +0000
parents 09bbf2fc80da
children 3864ee1088e9
line wrap: on
line diff
--- a/src/keyboard.c	Sat Jul 10 20:56:57 2004 +0000
+++ b/src/keyboard.c	Sat Jul 10 21:21:04 2004 +0000
@@ -10193,7 +10193,7 @@
   struct gcpro gcpro1;
 
   if (tty_list && tty_list->next)
-    error ("Suspend is not supported with multiple ttys");
+    error ("There are other tty frames open; close them before suspending Emacs");
 
   if (!NILP (stuffstring))
     CHECK_STRING (stuffstring);