Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!ll-xn!adelie!munsell!pz From: pz@munsell.UUCP (Paul Czarnecki) Newsgroups: comp.emacs Subject: C-mode indentation weirdness Message-ID: <1614@pinney.munsell.UUCP> Date: 22 Mar 88 19:52:55 GMT Reply-To: pz@munsell.UUCP () Organization: Eikonix Corp., Bedford, MA Lines: 39 Why does Gnu emacs indent this C code like this? It is clearly not what is wanted. Is there a coding style or emacs variable that I need to change? { switch (bar(class, form)) { case bar(CLASS_UNIV, FORM_STRING): printf("got a string\n"); process_string(); break; case bar(CLASS_UNIV, FORM_INT): printf("got an int\n"); process_int(); break; case bar(CLASS_UNIV, FORM_TIME): printf("got a time\n"); process_time(); break; default: printf("default\n"); break; } } I have the following lines in my ~/.emacs files. ;;; indent c code by 8 spaces (setq c-indent-level 8) (setq c-continued-statement-offset 8) (setq c-argdecl-indent 8) (setq c-label-offset -4) I am running a stock 18.41 Gnu emacs on a Sun running 3.4. pZ -- Paul Czarnecki -- Spam, spam, spam, Usenet, and spam {{harvard,ll-xn}!adelie,{decvax,allegra,talcott}!encore}!munsell!pz