[comp.archives] [epoch] Re: comments and "default" label

weikart@prl.dec.com (Chris Weikart) (06/04/91)

Archive-name: languages/c++/c++-mode/1991-06-02
Archive: gatekeeper.dec.com:/pub/GNU/elisp-misc/c++-mode.el [16.1.0.2]
Original-posting-by: weikart@prl.dec.com (Chris Weikart)
Original-subject: Re: comments and "default" label
Reposted-by: emv@msen.com (Edward Vielmetti, MSEN)

In article <1991May28.213939.11076@rice.edu>, pyang@rice.edu (Po) writes:
> 
> 
> I was wondering how to get epoch to recognize both
> 	/* ... */
> and
> 	//
> comments with correct indentations.
> When I set start-comment to //, the indentation of /* */ comment looks like
>  	/*
> 	    *
> 		*/
> 
> ...

Looks like you could use a C++ mode. You can get one via anonymous ftp from
gatekeeper.dec.com (16.1.0.2) in /archive/pub/GNU/elisp-misc/c++-mode.el.

It's wise to (setq c-auto-newline nil) to avoid problems with "::", and macro
definition indentation seem to mess up the following code indentation, but
otherwise it's a hell of a lot better than C mode for C++...

-------------------------------------------------------------------------------
Chris Weikart <weikart@prl.dec.com> .............. DEC Paris Research Lab (PRL)

-- comp.archives file verification
gatekeeper.dec.com
-r--r--r--  1 root     system      36962 Mar 24 08:00 /pub/GNU/elisp-misc/c++-mode.el
found c++-mode ok
gatekeeper.dec.com:/pub/GNU/elisp-misc/c++-mode.el