🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

7 total messages Started by Po Tue, 28 May 1991 21:39
comments and "default" label
#1983
Author: Po
Date: Tue, 28 May 1991 21:39
36 lines
1319 bytes

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
 	/*
	    *
		*/


Another question I have is that default label in the switch statment does
not seem to indent correctly in epoch.  (though it work just fine in 
gnuemacs.)  The indentation epoch is using looks like:
	
		switch(X) 
		  {
		  case 1:
		    break;

		    default:
		    break;
		  }


Thanks

Po
pyang@titan.rice.edu
-- 
                           ,
  y   yyy         b    __b__         lll
  y   y_y         b    ^^b^^         ll 
yyyyy y y       bbbbb bbbbbbb       ll
Re: comments and "default" label
#1984
Author: Alan M. Carroll
Date: Wed, 29 May 1991 15:17
15 lines
1353 bytes
In article <1991May28.213939.11076@rice.edu>, pyang@rice.edu (Po) writes:
> Another question I have is that default label in the switch statment does
> not seem to indent correctly in epoch.  (though it work just fine in 
> gnuemacs.)  The indentation epoch is using looks like:

This is a known Epoch bug, which I believe should have been fixed in
patch 1 for 3.2. A simple fix you can use until you install the patch
is to put in your Epoch startup file

(modify-syntax-entry ?: "." c-mode-syntax-table)

-- 
Alan M. Carroll          <-- Another casualty of applied metaphysics
Epoch Development Team   
Urbana Il.               "I hate shopping with the reality-impaired" - Susan
(none)
#1986
Author: Haider Abbas Rizvi
Date: Wed, 29 May 1991 15:56
14 lines
1115 bytes
I am here, reserve a squash or rball court as you wish, and then tell me if
you are there.

------------------------------------------------------------
----->Haider Rizvi (haider@rice.edu)          

                            hhhh
        h       h     h    h     h
        h       h     h   h       h
   hhhhh   hhhhh hhhhh hhhhhhhhhhhhh
                  o o              
------------------------------------------------------------

                   
comments and "default" label
#1985
Author: Haider Abbas Rizvi
Date: Wed, 29 May 1991 16:00
13 lines
1025 bytes
Got any reply from those people.

------------------------------------------------------------
----->Haider Rizvi (haider@rice.edu)          

                            hhhh
        h       h     h    h     h
        h       h     h   h       h
   hhhhh   hhhhh hhhhh hhhhhhhhhhhhh
                  o o              
------------------------------------------------------------

                   
Re: comments and "default" label
#1989
Author: Steve Baumgarten
Date: Wed, 29 May 1991 18:24
14 lines
1401 bytes
In article <1991May29.151742.5370@m.cs.uiuc.edu> carroll@cs.uiuc.edu (Alan M. Carroll) writes:

   This is a known Epoch bug, which I believe should have been fixed in
   patch 1 for 3.2. A simple fix you can use until you install the patch
   is to put in your Epoch startup file

I applied both official patches, but the problem remains.  It's not in
emacs 18.57, for what that's worth.

--
   Steve Baumgarten             | "New York... when civilization falls apart,
   Davis Polk & Wardwell        |  remember, we were way ahead of you."
   baumgart@esquire.dpw.com     | 
   cmcl2!esquire!baumgart       |                           - David Letterman
Error in patch #2 ?
#1990
Author: Francois Bourdoncle
Date: Thu, 30 May 1991 08:40
6 lines
984 bytes
We've just installed official patch #2, but we have a problem: some control
sequences (such as undo, which is normally bound to "\C-/") does not seem to
work any longer.  Are we doing something wrong, or does the problem occur
elsewehere?

-- Francois.
Re: comments and "default" label
#1860
Author: Chris Weikart
Date: Sun, 02 Jun 1991 19:07
24 lines
1532 bytes
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)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads