From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: Re: How do I make emacs indent treat #ifdef and #endif as if they were { and }? Date: Wed, 4 Apr 2012 07:41:21 +0000 (UTC) Organization: Public Access Networks Corp. Message-ID: References: <1AEEB8AA-7A49-4338-B5EC-9234FE5C1CFD@venalicium.dk> NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1333525517 3635 80.91.229.3 (4 Apr 2012 07:45:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 Apr 2012 07:45:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 04 09:45:16 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SFKu3-000714-7G for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Apr 2012 09:45:15 +0200 Original-Received: from localhost ([::1]:43773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFKu2-0003pf-Hy for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Apr 2012 03:45:14 -0400 Original-Path: usenet.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-NNTP-Posting-Host: panix3.panix.com Original-X-Trace: reader1.panix.com 1333525281 8875 166.84.1.3 (4 Apr 2012 07:41:21 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Wed, 4 Apr 2012 07:41:21 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Original-Xref: usenet.stanford.edu gnu.emacs.help:191896 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84310 Archived-At: In article , Dan Espen wrote: >dkcombs@panix.com (David Combs) writes: > >> In article , >> Jules Colding wrote: >>> >>>On Feb 8, 2012, at 10:57 PM, Ken Goldman wrote: >>> >>>> If you care about portability, some older compilers do not permit white space before the #. >>> >>>I don't. I just want the source to look as readable as possible. I don't care if it can't compile in some old compiler. Most, if not all, recent compilers are happy >>>about spaces before the #. >>> >>>Cheers, >>> jules >>> >>> >>> >> >> Aren't there well-known (unix) programs whose sole purpose is >> to "beautify" (via indenting) various kinds of files? >> >> Maybe "indent" is the name of one. >> >> I recall looking at either that or another one once, >> but it had so many complicated options that it overwhelmed >> me. >> >> Maybe things have improved since then -- I don't know. > >Last time I used it I noticed a huge number of options. > >So, I just used it once, looked at the results, >then searched the man page for things I wanted to change. > > >-- >Dan Espen Maybe someone here uses that program. If so, and you're one of the indent users, perhaps you could show us some indent runs, with options, and for each run (or just invocation), say what you wanted to accomplish, and why you used those options, and maybe how you came up with that set of options. That would *really* be useful, would make indent a *lot* more likely to get used. Thanks! David