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: Wed, 9 Jul 2014 22:40:09 -0700 Message-ID: References: <83mwcjdhp8.fsf@gnu.org> <871ttvu6kx.fsf@uwakimon.sk.tsukuba.ac.jp> <87oawzfzi0.fsf@igel.home> <83zjgiaq3i.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1405040398 1959 80.91.229.3 (11 Jul 2014 00:59:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jul 2014 00:59:58 +0000 (UTC) Cc: Andreas Schwab , "Stephen J. Turnbull" , Mathias Dahl , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 11 02:59:51 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 1X5PBn-0006WD-JK for ged-emacs-devel@m.gmane.org; Fri, 11 Jul 2014 02:59:51 +0200 Original-Received: from localhost ([::1]:36197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X582a-0005tw-RX for ged-emacs-devel@m.gmane.org; Thu, 10 Jul 2014 02:41:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X575g-0002dO-I1 for emacs-devel@gnu.org; Thu, 10 Jul 2014 01:40:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X575Z-00078z-7R for emacs-devel@gnu.org; Thu, 10 Jul 2014 01:40:20 -0400 Original-Received: from mail-vc0-x236.google.com ([2607:f8b0:400c:c03::236]:51995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X575Z-00077w-3S for emacs-devel@gnu.org; Thu, 10 Jul 2014 01:40:13 -0400 Original-Received: by mail-vc0-f182.google.com with SMTP id il7so9480334vcb.41 for ; Wed, 09 Jul 2014 22:40:12 -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=VvHAMV9cA1ujuypB/ctafLSMJd0XiGOzQMbDJiI2X9g=; b=UOV6o+KpiHZ6YeV/FWBYx/2Z7GoGbAW5wKfronocuMGeNYBiKEOUcmfohTgCN4WpED gyGKhBgFYqHmV9FXe3DKTKfH3MN0w/ktnZFqtphMRc9nw+2OTV1JUURo9Mi5BCpAG9N3 86IUFSYvWqN3GvR6q1B0n9pdnHzWSLqF401YaiM2/uPzdDY9OvtidHOmN1qZedaxXrza Cac0/zwqQp8e2AhsJAKGlNIRzHZSfBsf0Xcls95vnSAJYYBffZFX24HMjwicG0z9Um4w 9cbcXg9j6elh4U+t850Gik4reg/fEhEcH09TMZpgolN6xTtrZ74zPAjdoXWzFEznt131 Ts7Q== 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=VvHAMV9cA1ujuypB/ctafLSMJd0XiGOzQMbDJiI2X9g=; b=BhPWADkERxkyayuX/LX7oOeBCPD9Zeau7AhPm8IH6cfkvauDL405WQAwCa4QcQw4Ry q4/AQv6ItfdxMTqwccDayhJ3Y2E4ym+D/iIVpk40xHSvynfwW6UaRvTaaAKXxWPQckAq uA7L8W85wp/bnzRIyplOgAXV6d2mgzdI7/UJWuSQLMsNlMocdWZF9+4cedrIcUrcRtAF rclU4fBsE/tRB8TPpP+hudRYBYSielt2mZOnBmu6e0gY+OMsLs219OA2fKZ6nzo43Xw6 ET5IirAdMLRVdUsnN7TccEGvvOIXIeH4iq4IoFkBxkmAr6IU+qCfNFE3XfXy3iFowJoj cKVg== X-Received: by 10.52.123.232 with SMTP id md8mr36666551vdb.10.1404970812045; Wed, 09 Jul 2014 22:40:12 -0700 (PDT) Original-Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPSA id vl8sm38723730vec.0.2014.07.09.22.40.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 09 Jul 2014 22:40:10 -0700 (PDT) Original-Received: by mail-vc0-f179.google.com with SMTP id id10so9631671vcb.10 for ; Wed, 09 Jul 2014 22:40:10 -0700 (PDT) X-Gm-Message-State: ALoCoQnIVtCmKlbPfAK+9V2l6v1soMpM7kh7P07WjCSBOuXRz5tECLFCATe379UPJAVgBKrATi/B X-Received: by 10.58.134.81 with SMTP id pi17mr19431165veb.14.1404970810064; Wed, 09 Jul 2014 22:40:10 -0700 (PDT) Original-Received: by 10.58.39.234 with HTTP; Wed, 9 Jul 2014 22:40:09 -0700 (PDT) X-Originating-IP: [24.130.175.207] In-Reply-To: <83zjgiaq3i.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c03::236 X-Mailman-Approved-At: Thu, 10 Jul 2014 02:40:44 -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:172955 Archived-At: > If you want to do this in an interactive session Yes, 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 Doing it when exiting emacs would work. The best way to see what I'm trying to do is to watch the first 20 seconds of the video on http://xsh.org. Xsh runs in emacs (transparently for most users, since most key shortcuts are redefined). I'm using a work-around to do the printing for now. One possible work-around is to making xsh be a bash script (or function) that runs emacs and then prints text it finds in a file temp file to stdout. But it would be nice if I could do it without that step. --Craig