unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Martin Stjernholm <mast@lysator.liu.se>
Cc: rms@gnu.org, bug-cc-mode@gnu.org, handa@m17n.org, emacs-devel@gnu.org
Subject: Re: Change of C indentation style ('{')
Date: Thu, 30 Oct 2003 01:03:01 +0100	[thread overview]
Message-ID: <5b3cdbsibu.fsf@lister.roxen.com> (raw)
In-Reply-To: <20031029214141.GA30336@fencepost> (Miles Bader's message of "Wed, 29 Oct 2003 16:41:41 -0500")

Miles Bader <miles@gnu.org> wrote:

> On Wed, Oct 29, 2003 at 08:28:42PM +0100, Martin Stjernholm wrote:
>> /.../ these macro constructs are only truly ambiguous with old K&R
>> style function definitions. So it ought to be possible to solve
>> with more careful checks.
>
> What about the example I gave (in another message) that would seem to
> indicate otherwise?

I can't see that it does. In your example it's possible to look at
both the expression in the parenthesis and the lack of a return type.
I planned to only check for the return type since it's more reliable.

> [Not that I think requring `declarations' of macros is a very workable idea
> -- people wouldn't do it 99% of the time]

I agree. (It's the same thing with the c-font-lock-extra-types
variable - I don't think it's good enough to rely on that to fontify
types correctly, and so I implemented a considerably more elaborate
method to recognize declarations and casts.)


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/


  reply	other threads:[~2003-10-30  0:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-23  1:09 Change of C indentation style ('{') Kenichi Handa
2003-10-23 22:16 ` Martin Stjernholm
2003-10-24  1:25   ` Kenichi Handa
2003-10-24  3:48   ` Miles Bader
2003-10-24  9:56     ` Martin Stjernholm
2003-10-24 10:11       ` Miles Bader
2003-10-24 23:24   ` Richard Stallman
2003-10-25 14:40     ` Martin Stjernholm
2003-10-27  7:02       ` Richard Stallman
2003-10-27 14:24         ` Martin Stjernholm
2003-10-28 20:39           ` Richard Stallman
2003-10-29 19:28             ` Martin Stjernholm
2003-10-29 21:41               ` Miles Bader
2003-10-30  0:03                 ` Martin Stjernholm [this message]
2003-10-30  0:11                   ` Miles Bader
2003-10-30  0:30                 ` Stefan Monnier
2003-10-30 18:00                 ` Richard Stallman
2003-10-30 18:01               ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=5b3cdbsibu.fsf@lister.roxen.com \
    --to=mast@lysator.liu.se \
    --cc=bug-cc-mode@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.org \
    --cc=rms@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).