From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: M-x indent-region Date: Mon, 05 May 2003 08:12:34 +0200 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84el3dncq5.fsf@lucy.is.informatik.uni-duisburg.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052119018 1572 80.91.224.249 (5 May 2003 07:16:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 5 May 2003 07:16:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon May 05 09:16:51 2003 Return-path: Original-Received: from hermes.netfonds.no ([80.91.224.195]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19CaBC-0000Jz-00 for ; Mon, 05 May 2003 09:14:30 +0200 Original-Received: from monty-python.gnu.org (monty-python.gnu.org [199.232.76.173]) by hermes.netfonds.no (8.12.8p1/8.12.8) with ESMTP id h457FoRo004480 for ; Mon, 5 May 2003 09:15:50 +0200 (CEST) Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Ca7j-0008Pu-0B for gnu-help-gnu-emacs@m.gmane.org; Mon, 05 May 2003 03:10:55 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!lucy.is.informatik.uni-duisburg.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: lucy.is.informatik.uni-duisburg.de (134.91.35.216) Original-X-Trace: fu-berlin.de 1052118373 16356523 134.91.35.216 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:M/RNEpxj+mMr9XWcDUomwmqDEC4= Original-Xref: shelby.stanford.edu gnu.emacs.help:112775 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9270 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9270 Sanford Selznick writes: > In emacs, 'M-x indent-region' is the best indent I've ever seen. > > How can I trigger this action from the command-line and have emacs > indent an individual file? Maybe something like this. emacs -batch --eval '(find-file "foo)' \ --eval '(indent-region (point-min) (point-max))' -f save-buffer -f save-buffers-kill-emacs But I haven't tested it. -- file-error; Data: (Opening input file no such file or directory ~/.signature)