From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: westin*nospam@graphics.cornell.edu (Stephen H. Westin) Newsgroups: gmane.emacs.help Subject: Re: Indenting code: C-M-\ v C-x C-q Date: 11 Nov 2003 15:26:50 -0500 Organization: Cornell University Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3fb13b2d@news.seqnet.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1068582887 656 80.91.224.253 (11 Nov 2003 20:34:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2003 20:34:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 11 21:34:46 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AJfDp-0006ie-00 for ; Tue, 11 Nov 2003 21:34:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AJg8n-0007pp-Lb for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Nov 2003 16:33:37 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.cis.ohio-state.edu!ngpeer.news.aol.com!newsstand.cit.cornell.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: ralph.graphics.cornell.edu Original-X-Trace: news01.cit.cornell.edu 1068582411 1873 128.84.247.95 (11 Nov 2003 20:26:51 GMT) Original-X-Complaints-To: usenet@news01.cit.cornell.edu Original-NNTP-Posting-Date: 11 Nov 2003 20:26:51 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:118139 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:14079 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14079 "Siegfried Heintze" writes: > I just I happend to be poking around the www.Xemacs.com and noticed > something about indenting perl code with C-M-\ and discovered it works great > for indenting perl code in regular emacs too! > > Oh -- the time I could have saved if I had known this! Why are there two > keys to do the same thing? They don't. C-x C-q does a paragraph fill. With text, this means that it takes the current paragraph (all the text surrounding the point and between blank lines), treats it as a single line, then divides into lines no wider than the fill column. C-M-\ indents programming code within the currently selected region, without changing line breaks. If writers of java-mode and such added auto indenting to "fill-paragraph", I guess that's a nice extra feature. -- -Stephen H. Westin Any information or opinions in this message are mine: they do not represent the position of Cornell University or any of its sponsors.