Path: utzoo!utgpu!watmath!iuvax!cica!tut.cis.ohio-state.edu!DSYS.NCSL.NIST.GOV!rbj From: rbj@DSYS.NCSL.NIST.GOV (Root Boy Jim) Newsgroups: gnu.emacs.bug Subject: Bug in c-mode.el Message-ID: <8908022017.AA08204@dsys.ncsl.nist.gov> Date: 2 Aug 89 20:17:20 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: National Institute of Standards and Technology formerly National Bureau of Standards Lines: 26 ? From: mellon@zayante.pa.dec.com (Ted Lemon) ? When I do a ``switch'' in C, emacs indents the case statements ? incorrectly. Similarly, emacs indents my label statements ? incorrectly. Sample: ? switch( foo ) { ? case bar : ? farf(); ? break; ? [rest of example deleted] ? The problem turns out to be quite trivial. c-mode doesn't believe ? that there can be a space between the label and the colon. And neither do I. What, pray tell, prompted this bizarre style? To me, the colon looks like part of a ?: expression. What you do with parentheses is strange as well. Oh, well, I guess it takes all kinds. ? _MelloN_ Root Boy Jim Have GNU, Will Travel.