home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / emacs / help / 4127 < prev    next >
Encoding:
Text File  |  1992-09-14  |  2.0 KB  |  64 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!iWarp.intel.com|inews.Intel.COM!cad734!rcox
  3. From: rcox@cad734.NoSubdomain.NoDomain (Richard Cox)
  4. Subject: Re: c++-mode version 2.195
  5. Message-ID: <BuLA0q.1sq@nntp-sc.Intel.COM>
  6. Sender: rcox@cad734 (Richard Cox)
  7. Nntp-Posting-Host: cad734
  8. Organization: Intel Corporation, Santa Clara, CA USA
  9. References:  <9209131836.AA11797@accura_nc.aisg.com>
  10. Date: Mon, 14 Sep 1992 22:19:37 GMT
  11. Lines: 51
  12.  
  13. |>     I have just acquired a new version of c++-mode. I love it except that
  14. |> I do not like the format where I declare an array of variables. For
  15. |> instance, I like an array to look like that:
  16. |>     int table[] =
  17. |>     {
  18. |>         item1,
  19. |>         item2,
  20. |>         .....
  21. |>     };
  22. |> 
  23. |> But the c++-mode formats it like that:
  24. |>     int table[] =
  25. |>     {    
  26. |>         item1,
  27. |>            item2,
  28. |>            item3,
  29. |>            .....
  30. |>     };
  31. |> 
  32. |> Could anyone tell me how I can change the variables so that I can have the
  33. |> first format? Thanks in advance.
  34.  
  35. I Think that this is bug in c++-indent because I have discovered the
  36. same problem in formatting code like this:
  37.  
  38. class X 
  39. {
  40.    public:
  41.       protected
  42.       private:
  43. }
  44.  
  45.  only the first line is wrong.  If you put the brace on the same line
  46.  
  47. class X { <-- same line
  48.  
  49. It formats correctly.  I have not had time to look at the elisp code yet
  50. and Barry won't be back from vacation for about 2 more weeks so I think
  51. this is a feature until then....
  52.  
  53. -Rich
  54.  
  55. -- 
  56. +-----------------------------------------------------------------------------+
  57. |Rich Cox                                              E-Mail: rcox@scdt.intel.com           |
  58. |CAD Developer                             AOL: Rich Kid                      |
  59. |Intel Corp.                     Mailstop: SC3-39               |
  60. |                                        Phone: (408) 765-5199              |
  61. |-----------------------------------------------------------------------------+
  62. | These opinions are shared by everyone, I asked them...                      |
  63. +-----------------------------------------------------------------------------+
  64.