Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!ox.com!msen.com!emv From: weikart@prl.dec.com (Chris Weikart) Newsgroups: comp.archives Subject: [epoch] Re: comments and "default" label Message-ID: <1991Jun3.231241.12499@ox.com> Date: 3 Jun 91 23:12:41 GMT Article-I.D.: ox.1991Jun3.231241.12499 References: <1991May28.213939.11076@rice.edu> Sender: emv@msen.com (Edward Vielmetti, MSEN) Reply-To: weikart@prl.dec.com (Chris Weikart) Followup-To: gnu.epoch.misc Organization: Digital Equipment Corporation - Paris Research Laboratory Lines: 36 Approved: emv@msen.com (Edward Vielmetti, MSEN) X-Original-Newsgroups: gnu.epoch.misc 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 .............. 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