home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!iWarp.intel.com|inews.Intel.COM!cad734!rcox
- From: rcox@cad734.NoSubdomain.NoDomain (Richard Cox)
- Subject: Re: c++-mode version 2.195
- Message-ID: <BuLA0q.1sq@nntp-sc.Intel.COM>
- Sender: rcox@cad734 (Richard Cox)
- Nntp-Posting-Host: cad734
- Organization: Intel Corporation, Santa Clara, CA USA
- References: <9209131836.AA11797@accura_nc.aisg.com>
- Date: Mon, 14 Sep 1992 22:19:37 GMT
- Lines: 51
-
- |> I have just acquired a new version of c++-mode. I love it except that
- |> I do not like the format where I declare an array of variables. For
- |> instance, I like an array to look like that:
- |> int table[] =
- |> {
- |> item1,
- |> item2,
- |> .....
- |> };
- |>
- |> But the c++-mode formats it like that:
- |> int table[] =
- |> {
- |> item1,
- |> item2,
- |> item3,
- |> .....
- |> };
- |>
- |> Could anyone tell me how I can change the variables so that I can have the
- |> first format? Thanks in advance.
-
- I Think that this is bug in c++-indent because I have discovered the
- same problem in formatting code like this:
-
- class X
- {
- public:
- protected
- private:
- }
-
- only the first line is wrong. If you put the brace on the same line
-
- class X { <-- same line
-
- It formats correctly. I have not had time to look at the elisp code yet
- and Barry won't be back from vacation for about 2 more weeks so I think
- this is a feature until then....
-
- -Rich
-
- --
- +-----------------------------------------------------------------------------+
- |Rich Cox E-Mail: rcox@scdt.intel.com |
- |CAD Developer AOL: Rich Kid |
- |Intel Corp. Mailstop: SC3-39 |
- | Phone: (408) 765-5199 |
- |-----------------------------------------------------------------------------+
- | These opinions are shared by everyone, I asked them... |
- +-----------------------------------------------------------------------------+
-