Topic: indent for c++ ??


Author: sweet@htc.com (Kevin Sweet)
Date: 12 Aug 1993 19:06:22 -0500
Raw View
hmm, maybe i'll try a distribution other than "local" this time...

In <MARCUS.93Aug5142002@x4u.desy.de> marcus@x4u.desy.de (Marcus Speh) writes:

>>>>>> On 4 Aug 1993 14:12:15 GMT, holzapfe@pythagoras.igd.fhg.de (Roland Holzapfel) said:
>|> I'm looking for a pretty indentation program like indent, but for c++ code.

>|> Any hints ?

>This is rather simple a task with Barry Warsaw's C++ mode for Emacs.
>The Information below is from the World Wide Web, URL
>http://info.desy.de:80/pub/www/projects/hepC++.html.
>C++ mode does much more of course, than just post-indentation.

 [description of c++-mode.el.Z deleted]


 yes, but how do i use c++-mode.el in a stand alone fashion?

 what i'd like to do is allow multiple developers to indent source
 code to their own liking when viewing or making modifications but
 when files are entered into the revision control system, i'd like
 a common format to be used so that differences between revisions
 can be more readily apparent. thus my desire, as well, for an
 indent for C++ code. (i posted a while ago that a *must* criterion
 for this indent program is that it must produce identical output on
 already indented code.)

 - kevin

--
Kevin Sweet --------------------------------------------- sweet@htc.com
Hull Trading Company -------- phone +1.312.697.2729 fax +1.312.697.2785
311 South Wacker Drive, Suite 1400  -  Chicago, Illinois 60606  -   USA




Author: holzapfe@pythagoras.igd.fhg.de (Roland Holzapfel)
Date: 4 Aug 1993 14:12:15 GMT
Raw View
Hello everybody

I'm looking for a pretty indentation program like indent, but for c++ code.

Any hints ?

Roland
       \|/
      (o o)
 -oOO--(_)--OOo-------------------------------------------------------------
  \\    Roland Holzapfel        Zentrum fuer     email:                   //
   \\   Wilhelminenstrasse 7     graphische        holzapfe@igd.fhg.de   //
   //   64283 Darmstadt      Datenverarbeitung   Tel.:                   \\
  //    Germany                    (ZGDV)              06151 155150       \\
 ---------------------------------------------------------------------------
  >>                This space intentionally left blank                   <<
 ---------------------------------------------------------------------------




Author: marcus@x4u.desy.de (Marcus Speh)
Date: Thu, 5 Aug 1993 12:20:02 GMT
Raw View
>>>>> On 4 Aug 1993 14:12:15 GMT, holzapfe@pythagoras.igd.fhg.de (Roland Holzapfel) said:
|> I'm looking for a pretty indentation program like indent, but for c++ code.

|> Any hints ?

This is rather simple a task with Barry Warsaw's C++ mode for Emacs.
The Information below is from the World Wide Web, URL
http://info.desy.de:80/pub/www/projects/hepC++.html.
C++ mode does much more of course, than just post-indentation.

------------------------------------------------------------------------
Emacs C++ Mode
**************

The C++ mode for Emacs editors is a customizable environment
to format C++ (and C) code in a consistent way.  It is suggested
to use this code to ensure homogeneity of the format while
leaving details (how to comment, where to put braces etc.) to the
author (via customization in the Emacs initialization file .emacs).
This Emacs Lisp file should work with all Emacsen available: GNU
Emacs, Epoch, Lucid Emacs etc.

This Emacs mode has recently been improved very much by
Barry Warsaw.  It is still under active development and
discussion.  The online-help of the current version is here

An older copy of c++-mode.el is distributed together with the
releases for GNU libg++ and Emacs (since version 19)

Where To Get C++ Mode
=====================

The latest version of GNU Emacs C++ mode is available via
anonymous FTP to archive.cis.ohio-state.edu in directory
/pub/gnu/emacs/elisp-archive/modes in file c++-mode.el.Z.  See
the header of the file for introduction and installation.

C++ Mode Dicussion List
=======================

There is an unmoderated discussion list for Barry Warsaw's C++
mode.  If there are (undocumented) features you want to know,
suggestions or code you want to contribute, or if you only want to
follow a (fairly technical) discussion on formatting matters, you
should join this list.  To do so, send an "add" request to

c++-mode-victims-request@anthem.nlm.nih.gov

Bug reports and simple questions should be directed to

c++-mode-help@anthem.nlm.nih.gov

(automatic mailing from within c++-mode with the Emacs
command "c++-submit-bug-report").

More Modes
==========

More on Modes and Emacs Lisp is here
___________________________________________________________________________

Last updated June 27, 1993

Marcus Speh
marcus@x4u.desy.de