From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Craig Muth Newsgroups: gmane.emacs.devel Subject: Re: Writing to STDOUT from elisp Date: Tue, 8 Jul 2014 18:50:23 -0700 Message-ID: References: <83mwcjdhp8.fsf@gnu.org> <871ttvu6kx.fsf@uwakimon.sk.tsukuba.ac.jp> <87oawzfzi0.fsf@igel.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1404959666 23261 80.91.229.3 (10 Jul 2014 02:34:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jul 2014 02:34:26 +0000 (UTC) Cc: "Stephen J. Turnbull" , emacs-devel@gnu.org, Eli Zaretskii , Mathias Dahl To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 10 04:34:17 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 1X54Bb-0003VW-Dq for ged-emacs-devel@m.gmane.org; Thu, 10 Jul 2014 04:34:15 +0200 Original-Received: from localhost ([::1]:35271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X54Bb-0006Jq-0H for ged-emacs-devel@m.gmane.org; Wed, 09 Jul 2014 22:34:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4h1k-0000VI-LP for emacs-devel@gnu.org; Tue, 08 Jul 2014 21:50:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4h1f-0001G9-3W for emacs-devel@gnu.org; Tue, 08 Jul 2014 21:50:32 -0400 Original-Received: from mail-oa0-x22f.google.com ([2607:f8b0:4003:c02::22f]:34569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4h1e-0001Ez-Un for emacs-devel@gnu.org; Tue, 08 Jul 2014 21:50:27 -0400 Original-Received: by mail-oa0-f47.google.com with SMTP id g18so306649oah.34 for ; Tue, 08 Jul 2014 18:50:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=toPFTP2G9SerMhe6podMOVpfg4d3iITDisNcIlo02qo=; b=K1Y7Xt+KKpt2eQ+XluoTUHq/VUPrro6s7T5sctPv6yYJ6QknN2RbnCVX+bx0IHae6Y vT8N95xnv3w7pqj2nMTIHEsvUr6iJzRS8GvcXyAHMzs+cSRPnpgU3ZzpXK3L4DogGm69 WkRvoo6scyxOtEkftwVQRJi44HIuJOlkyK2xQkxuiwoC9vaScqR2wZDSojNlkmNQHO3p UfQ36Hm1T7zK//+zJHWedXAzYHBX626qNTM1huYiAIO2jz/cw2RCt8eFrVTkjvUnyMi3 kBpJ+yC/L9eBogidsGr6cY8RdsTmz/QnhuqXgTTW9FOpfamanIaodLnw3AaSN80RcbYD B6gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=toPFTP2G9SerMhe6podMOVpfg4d3iITDisNcIlo02qo=; b=Gbc9DyNHCHYa5yuKrVae6dLktFDQ4Fns2+LYS8KnBW82Xe4Hd8w5/k5+gOmo44Db+C +NoofNLMtVObGFv+ppT/udSbDJS9/FqCpwJsSjlHP2Odyb2GNi70uTG+UTJ9FtwBMaOn z76Cudjnx4qcKc0KsFmoHUiGcccYWjsPvZ2UiBtzzO+OWw8U1DCvoUvUX6HUwZVCsw1S xQngKbMEtYHnao7IcLbKHtgFtTn4XHxUVlodtpqmVrZhyHa3dirTzzZVHUvTB3iqd0Dd w2mQPIwHP7yIEzSYRxpQz7g1XSWCHn5w+VNbFFJ4Co4jd3KbYMo0Kj6JBrANp2o1nHp1 E4PQ== X-Received: by 10.60.35.104 with SMTP id g8mr44246813oej.41.1404870625583; Tue, 08 Jul 2014 18:50:25 -0700 (PDT) Original-Received: from mail-ob0-f175.google.com (mail-ob0-f175.google.com [209.85.214.175]) by mx.google.com with ESMTPSA id b7sm173883937oed.7.2014.07.08.18.50.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Jul 2014 18:50:24 -0700 (PDT) Original-Received: by mail-ob0-f175.google.com with SMTP id wp18so276782obc.34 for ; Tue, 08 Jul 2014 18:50:23 -0700 (PDT) X-Gm-Message-State: ALoCoQkLxOmNm9BleovqwmS94ny+xWByg7OkxDRCttzch4tK/g2+L+shrdmwKi0ObD1f+TYHlOP9 X-Received: by 10.182.214.98 with SMTP id nz2mr43342257obc.62.1404870623528; Tue, 08 Jul 2014 18:50:23 -0700 (PDT) Original-Received: by 10.202.168.4 with HTTP; Tue, 8 Jul 2014 18:50:23 -0700 (PDT) X-Originating-IP: [24.130.175.207] In-Reply-To: <87oawzfzi0.fsf@igel.home> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c02::22f X-Mailman-Approved-At: Wed, 09 Jul 2014 22:34:11 -0400 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:172916 Archived-At: 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. I've asked around and am pretty sure elisp can't do this. I may have found the one elemental thing that elisp can't do :) --Craig On Tue, Jul 8, 2014 at 11:59 AM, Andreas Schwab wrote: > "Stephen J. Turnbull" writes: > >> Andreas Schwab writes: >> > Eli Zaretskii writes: >> > >> > > Stephen's suggestion is better: it does write to stdout. >> > >> > It writes to the echo area. >> >> See `standard-output'. > > Yes. Did you look it up? > > Andreas. > > -- > Andreas Schwab, schwab@linux-m68k.org > GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 > "And now for something completely different."