From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Read from stdin in non-batch mode Date: Sat, 19 Oct 2013 10:43:14 +0200 Message-ID: <87mwm5zm59.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1382172235 12877 80.91.229.3 (19 Oct 2013 08:43:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Oct 2013 08:43:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 19 10:43:59 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1VXS8c-0004hY-91 for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Oct 2013 10:43:58 +0200 Original-Received: from localhost ([::1]:60753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXS8b-0004sg-RG for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Oct 2013 04:43:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXS8J-0004sT-Ll for help-gnu-emacs@gnu.org; Sat, 19 Oct 2013 04:43:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXS8B-0004Ar-FO for help-gnu-emacs@gnu.org; Sat, 19 Oct 2013 04:43:39 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:58500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXS8B-00049r-9E for help-gnu-emacs@gnu.org; Sat, 19 Oct 2013 04:43:31 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VXS89-0004S8-0R for help-gnu-emacs@gnu.org; Sat, 19 Oct 2013 10:43:29 +0200 Original-Received: from g231233086.adsl.alicedsl.de ([92.231.233.86]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Oct 2013 10:43:29 +0200 Original-Received: from tjolitz by g231233086.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Oct 2013 10:43:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231233086.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:eFjXr492lrj6G0a/GDysdqVXYdE= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94097 Archived-At: Hi List, how can I (directly) achieve this behaviour in non-batch mode? ,------------------------------------------------------------------------- | t used as a stream means that the input is read from the minibuffer. | [...]. If Emacs is running in batch mode, standard input is used | instead of the minibuffer. For example, | | (message "%s" (read t)) | | will read a Lisp expression from standard input and print the result to | standard output. `------------------------------------------------------------------------- >From the manual it seems that I have to either pipe in/output through a buffer or write a function - there is no input-stream 'stdin' and no output-stream 'stdout' mentioned that would allow for the bahaviour described above. -- cheers, Thorsten