From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.devel Subject: Re: Writing to STDOUT from elisp Date: Tue, 8 Jul 2014 08:36:18 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c1b31c5723fa04fda8d0da X-Trace: ger.gmane.org 1404801416 3646 80.91.229.3 (8 Jul 2014 06:36:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jul 2014 06:36:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Craig Muth Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 08 08:36:45 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 1X4P1A-0005qq-GB for ged-emacs-devel@m.gmane.org; Tue, 08 Jul 2014 08:36:44 +0200 Original-Received: from localhost ([::1]:54174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4P19-0006Zx-PI for ged-emacs-devel@m.gmane.org; Tue, 08 Jul 2014 02:36:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4P16-0006ZL-UP for emacs-devel@gnu.org; Tue, 08 Jul 2014 02:36:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4P16-0002fT-2Z for emacs-devel@gnu.org; Tue, 08 Jul 2014 02:36:40 -0400 Original-Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:53002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4P15-0002fB-RG for emacs-devel@gnu.org; Tue, 08 Jul 2014 02:36:39 -0400 Original-Received: by mail-wi0-f170.google.com with SMTP id cc10so544051wib.3 for ; Mon, 07 Jul 2014 23:36:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=oogd/No3PYS9BmA5W/Xfr5r2iJHlNwXobvGccCqx34M=; b=Z6bTsi3EbGCwOqtARwJ/SFEmJrsg/57Sp4+JZ3azvqJfvVRCu40/oAmkKlwatSV04L VpmSvRaMg1nUckZtefhCxE0hrK0LocAJYRY/rUMvNgz9XupHjWf26rrQ8tu+0P1VP8eY R6SZCkCtmrkfe9U4fXV3+yRfAmDl5pragY7sskC5xzvx06MPMcxaE6nOzHG7xtlvZoyN 9ovPTNELhbvr9eDFJtZ0mU7f4e1rSNT/Qba25Fevfy8suTSJ6qbiUXrHpEsG0KKckQWQ Jsrm885H8mRVaLYSjlb2BM8o4EblbvuVFX/Qyx6q2HajxpMXqNiuHHYs//KKs87jKXaI Eyaw== X-Received: by 10.194.219.70 with SMTP id pm6mr36849564wjc.53.1404801398545; Mon, 07 Jul 2014 23:36:38 -0700 (PDT) Original-Received: by 10.194.246.227 with HTTP; Mon, 7 Jul 2014 23:36:18 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22a 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:172892 Archived-At: --001a11c1b31c5723fa04fda8d0da Content-Type: text/plain; charset=UTF-8 Not sure this can be done without using batch mode. This is a small test I just did on w32: c:\> emacs.exe --batch --eval "(message """Test""")" Test On Sun, Jun 29, 2014 at 12:51 AM, Craig Muth wrote: > Is there a way to have elisp send a string to the STDOUT of the main > emacs process? So that it appears in the calling shell I launched > emacs from? (So I'll see it when I suspend or quit?) > > Ty! > --Craig > > --001a11c1b31c5723fa04fda8d0da Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Not sure this can be done without using batch mode. This i= s a small test I just did on w32:

c:\> emacs.exe= --batch --eval "(message """Test""")&qu= ot;
Test


On Sun, Jun 29, 2014 at 12:51 AM, Craig Muth <= span dir=3D"ltr"><craig.muth@gmail.com> wrote:
Is there a way to have elisp send a string t= o the STDOUT of the main
emacs process? =C2=A0So that it appears in the calling shell I launched
emacs from? =C2=A0(So I'll see it when I suspend or quit?)

Ty!
--Craig


--001a11c1b31c5723fa04fda8d0da--