From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: --batch: mention how to write to stdout Date: Sat, 27 Nov 2004 11:28:49 +0800 Message-ID: <871xegynpq.fsf@jidanni.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101528404 3297 80.91.229.6 (27 Nov 2004 04:06:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 27 Nov 2004 04:06:44 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 27 05:06:41 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CXtr7-0003eB-00 for ; Sat, 27 Nov 2004 05:06:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CXu0O-0007XF-Hn for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Nov 2004 23:16:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CXu0M-0007X9-EI for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2004 23:16:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CXu0M-0007Wx-0W for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2004 23:16:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CXu0L-0007Wu-Sx for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2004 23:16:13 -0500 Original-Received: from [204.74.68.40] (helo=frodo.hserus.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CXtqW-0007yM-Vc for bug-gnu-emacs@gnu.org; Fri, 26 Nov 2004 23:06:05 -0500 Original-Received: from tc210-203-46-83.3-17.dynamic.ebtnet.net ([210.203.46.83]:33451 helo=jidanni1) by frodo.hserus.net with esmtpsa (Cipher TLSv1:RC4-SHA:128) (Exim 4.43 #0) id 1CXtqT-000KSd-Pu by authid with plain for ; Sat, 27 Nov 2004 09:36:02 +0530 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:9829 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9829 In info we note `--batch' Run Emacs in "batch mode", which means that the text being edited is not displayed and the standard terminal interrupt characters such as `C-z' and `C-c' continue to have their normal effect. Emacs in batch mode outputs to `stderr' only what would normally stderr is mentioned be displayed in the echo area under program control, and functions which would normally read from the minibuffer take their input from `stdin'. stdin is mentioned But stdout is not mentioned, so users can't figure out how to use it, and end up using e.g., emacs -batch -eval '(progn(bbdb "." t)(other-window 1)(write-file "/dev/stdout"))'