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: Re: Writing to STDOUT from elisp Date: Thu, 10 Jul 2014 05:45:53 +0300 Message-ID: <83zjgiaq3i.fsf@gnu.org> References: <83mwcjdhp8.fsf@gnu.org> <871ttvu6kx.fsf@uwakimon.sk.tsukuba.ac.jp> <87oawzfzi0.fsf@igel.home> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1404960378 29661 80.91.229.3 (10 Jul 2014 02:46:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jul 2014 02:46:18 +0000 (UTC) Cc: schwab@suse.de, stephen@xemacs.org, mathias.dahl@gmail.com, emacs-devel@gnu.org To: Craig Muth Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 10 04:46:08 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X54N5-00054r-RJ for ged-emacs-devel@m.gmane.org; Thu, 10 Jul 2014 04:46:07 +0200 Original-Received: from localhost ([::1]:35323 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X54N5-0005v6-GK for ged-emacs-devel@m.gmane.org; Wed, 09 Jul 2014 22:46:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X54Mx-0005ss-CY for emacs-devel@gnu.org; Wed, 09 Jul 2014 22:46:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X54Ms-00028I-2L for emacs-devel@gnu.org; Wed, 09 Jul 2014 22:45:59 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:54349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X54Mr-00027h-QM for emacs-devel@gnu.org; Wed, 09 Jul 2014 22:45:53 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0N8H00M005JXTI00@mtaout27.012.net.il> for emacs-devel@gnu.org; Thu, 10 Jul 2014 05:41:59 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N8H00KR965YGH30@mtaout27.012.net.il>; Thu, 10 Jul 2014 05:41:58 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.183 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172918 Archived-At: > Date: Tue, 8 Jul 2014 18:50:23 -0700 > From: Craig Muth > Cc: "Stephen J. Turnbull" , emacs-devel@gnu.org, > Eli Zaretskii , Mathias Dahl > > You can get princ to write to "standard-output", meaning the echo > area. I'm looking to write to the stdout of the whole process, so the > output shows up in the terminal you launched emacs in. So when you > exit emacs, you'll see the text in the shell. You can do that with "emacs -batch", where princ writes to stdout. If you want to do this in an interactive session, please tell what exactly are you trying to do and why. For example, is this only needed when you exit Emacs, or do you want to be able to write to stdout and then continue to run Emacs for a while (and why)?