all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dkcombs@panix.com (David Combs)
To: help-gnu-emacs@gnu.org
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)	[thread overview]
Message-ID: <jlgtv1$8lb$2@reader1.panix.com> (raw)
In-Reply-To: icpqcjye2l.fsf@home.home

In article <icpqcjye2l.fsf@home.home>, Dan Espen  <despen@verizon.net> wrote:
>dkcombs@panix.com (David Combs) writes:
>
>> In article <mailman.3503.1328738521.15002.help-gnu-emacs@gnu.org>,
>> Jules Colding  <colding@venalicium.dk> 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



      parent reply	other threads:[~2012-04-04  7:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-03 21:49 How do I make emacs indent treat #ifdef and #endif as if they were { and }? Jules Colding
2012-02-08 21:57 ` Ken Goldman
2012-02-08 22:01   ` Jules Colding
     [not found] ` <mailman.3503.1328738521.15002.help-gnu-emacs@gnu.org>
     [not found]   ` <jjh1pi$7kb$4@reader1.panix.com>
     [not found]     ` <icpqcjye2l.fsf@home.home>
2012-04-04  7:41       ` David Combs [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='jlgtv1$8lb$2@reader1.panix.com' \
    --to=dkcombs@panix.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.