From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jochen_K=FCpper?= Newsgroups: gmane.emacs.help Subject: Re: Please help: How to reformat existing c++ files using emacs Date: Tue, 29 Mar 2005 23:57:09 +0200 Organization: Fritz-Haber-Institut der MPG Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1112134764 26596 80.91.229.2 (29 Mar 2005 22:19:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2005 22:19:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Wed Mar 30 00:19:14 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGOzd-0005sg-Id for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Mar 2005 00:15:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGPG0-0002oV-KR for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Mar 2005 17:32:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DGPF7-0002ba-8N for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 29 Mar 2005 17:31:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DGPF2-0002aj-VG for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 29 Mar 2005 17:31:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGPCS-0001zs-63 for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 29 Mar 2005 17:28:40 -0500 Original-Received: from [151.189.21.46] (helo=mail-in-06.arcor-online.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DGOi0-0000dN-Oh for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 29 Mar 2005 16:57:13 -0500 Original-Received: from doze.jochen-kuepper.de.fhi-berlin.mpg.de (dsl-082-082-207-145.arcor-ip.net [82.82.207.145]) by mail-in-06.arcor-online.net (Postfix) with ESMTP id B408C111C71 for ; Tue, 29 Mar 2005 23:57:09 +0200 (CEST) Original-To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org In-Reply-To: (Xiaopeng Xiong's message of "Tue, 29 Mar 2005 16:46:18 -0500") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUcGRSqioSCPi7Cwbxu Vk5MQjycXkxMKiQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFG2qEAAAB5klEQVR42nXUwY7aMBAA UK8E4tqpI/fMKIWzFdBewcwm10WA9tpksz6zFci/37GdxF7a+mLwi2fGQ4yo/jPE9AkaIcRM/gU7 EcfTA/zgtWsuEfRmWPVjlsOryMYpAYgvYz9B8RXmhxHEw/gcQD+sz/cDbMLXhbu7a6j6Nob6FuDW U21+uje8nuUA/rnXxR4ArCWi5jhWJSJUmoWop7HckPt+Bz6PsrYmexgg5HY3CDvKuq/lAM9hB4VQ HfZEMt8xj2BLSrD1cDlThNJMoXSEWnroDJr3HM5nDtUbRIPuluDqLlx8YdYuh0o87S6+DWANUrn+ Pf0eO7vh1Awf98XKXi/jAatnCwU/Bebl5pZqjRNs2xa4IcoqdEuN5QSbFn3pYLkqqbtyLLfSEbQi XEn4jsvpZRiAO7UCUCYBhE7zhAgSclAyToiSO5xgA+8RONYqD6X3YYdWnakJU1WVPsaI0LXU5VBF kMr6aJTBPk4KfP5SJoAYEXpE5/4FVnVrpHQ/tny/pAduZl/bBDsGLbkqD7ZN0PgbCfwucPL49gzd pZmPw22SoPoc+iZkAL+J6nRrdQEHf+4Qqm4TFJJ8idxYrumY/QEAFHQI65xhcZqgOEHhTAhk6WUu jgPohnc4wgD21+zN+c79AZmNym6Cgz4IAAAAAElFTkSuQmCC X-Archive: encrypt X-Attribution: Jochen OpenPGP: id=CC1B0B4D; url=http://jochen-kuepper.de/computer/keys.asc X-Request-PGP: http://jochen-kuepper.de/computer/keys.asc X-URL: http://jochen-kuepper.de Original-Lines: 38 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:25280 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25280 "Xiaopeng Xiong" writes: > formatting a single file is enough for me. If you know any command > to do so, please help! C-PgUp C- C-PgDn M-x indent region or similar... ,----[ C-h f indent-region RET ] | indent-region is an interactive compiled Lisp function in `indent'. | It is bound to C-M-\. | (indent-region START END &optional COLUMN) |=20 | Indent each nonblank line in the region. | A numeric prefix argument specifies a column: indent each line to that co= lumn. |=20 | With no prefix argument, the command chooses one of these methods and | indents all the lines with it: |=20 | 1) If `fill-prefix' is non-nil, insert `fill-prefix' at the | beginning of each line in the region that does not already begin | with it. | 2) If `indent-region-function' is non-nil, call that function | to indent the region. | 3) Indent each line as specified by the variable `indent-line-function'. |=20 | Called from a program, START and END specify the region to indent. | If the third argument COLUMN is an integer, it specifies the | column to indent to; if it is nil, use one of the three methods above. |=20 | [back] `---- Greetings, Jochen --=20 Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de Libert=E9, =C9galit=E9, Fraternit=E9 GnuPG key: CC1B0B4D (Part 3 you find in my messages before fall 2003.)