From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: suspend-tty Date: Fri, 10 Oct 2008 17:21:26 +0200 Message-ID: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1223652120 10687 80.91.229.12 (10 Oct 2008 15:22:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Oct 2008 15:22:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 10 17:22:57 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KoJp8-0001Xh-3d for ged-emacs-devel@m.gmane.org; Fri, 10 Oct 2008 17:22:38 +0200 Original-Received: from localhost ([127.0.0.1]:46824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoJo4-0001cK-0p for ged-emacs-devel@m.gmane.org; Fri, 10 Oct 2008 11:21:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KoJo0-0001c3-5K for emacs-devel@gnu.org; Fri, 10 Oct 2008 11:21:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KoJnz-0001bn-LJ for emacs-devel@gnu.org; Fri, 10 Oct 2008 11:21:27 -0400 Original-Received: from [199.232.76.173] (port=49385 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoJnz-0001bj-G2 for emacs-devel@gnu.org; Fri, 10 Oct 2008 11:21:27 -0400 Original-Received: from mtaout4.012.net.il ([84.95.2.10]:60039) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KoJnz-00070u-B4 for emacs-devel@gnu.org; Fri, 10 Oct 2008 11:21:27 -0400 Original-Received: from HOME-C4E4A596F7 ([77.127.3.182]) by i_mtaout4.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K8J00BO341W9K82@i_mtaout4.012.net.il> for emacs-devel@gnu.org; Fri, 10 Oct 2008 17:22:44 +0200 (IST) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104457 Archived-At: Does anyone know what is the purpose of suspend-tty? (Please don't tell "to stop I/O from/to a terminal", since that just repeats the name of the function.) IOW, under what circumstances would a Lisp program want to do that, and what could be then done with the terminal which Emacs ``suspended''? I tried invoking suspend-tty on a GNU/Linux machine, and the terminal just got hang, the only thing I could do is abort Emacs. (If I had another tty open in the same session, I understand I could resume-tty, but that doesn't really answers my question.) I thought suspend-tty would leave the terminal free for use by other programs, but it sounds like I misunderstood? The only non-trivial user of suspend-tty is server.el, but the new functionality that uses it is completely undocumented, both in the code, in NEWS and in the manuals, and the semantics of using this API evaded me. Can someone give a hint? TIA