From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Benjamin Rutt Newsgroups: gmane.emacs.help Subject: Re: formatting function argument list Date: Sun, 25 May 2003 17:13:56 -0400 Organization: The Ohio State University Dept. of Computer and Info. Science Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053897415 11453 80.91.224.249 (25 May 2003 21:16:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 25 May 2003 21:16:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sun May 25 23:16:51 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19K2rK-0002xo-00 for ; Sun, 25 May 2003 23:16:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19K2qV-0002Mv-Fw for gnu-help-gnu-emacs@m.gmane.org; Sun, 25 May 2003 17:15:59 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.ems.psu.edu!news.cis.ohio-state.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: gamma.cis.ohio-state.edu Mail-Copies-To: nobody User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (usg-unix-v) Cancel-Lock: sha1:HvH7+gRrAi0y68w9qZn0/oR3TY0= Original-Xref: shelby.stanford.edu gnu.emacs.help:113676 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:10172 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10172 Timur Aydin writes: > /* All arguments in one line, one space between type and argument */ > int func(int a, char b, size_t c) > { > /* Function body (nicely indented) */ > } Nice, except it won't scale for many-argument functions. [...] > /* One argument per line, arguments aligned. */ > int func(int a, > char b, > size_t c) > { > /* Function body (nicely indented) */ > } This style can be achieved automagically if you M-x align the region. Note: once you start doing this, you will wish to use it everywhere. Very addictive! -- Benjamin