Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!gatech!udel!rochester!smithln From: smithln@rochester.UUCP Newsgroups: comp.emacs Subject: Special GNU emacs c-mode indentation Message-ID: <361@sol.ARPA> Date: Tue, 16-Jun-87 17:53:56 EDT Article-I.D.: sol.361 Posted: Tue Jun 16 17:53:56 1987 Date-Received: Thu, 18-Jun-87 03:14:14 EDT Reply-To: smithln@rochester.UUCP (Neil Smithline) Organization: U of Rochester, CS Dept, Rochester, NY Lines: 43 I am currently programming on a BBN Butterfly Multiprocessor. Most of the programming is done in C. Rather than using signal processing the machine uses the lisp-like catch/throw statements to trap runtime errors. My problem is that GNU emacs does not indent these probably - I want my code to look as such: /* code outside of the catch is above here */ catch stmt ..... stmt onthrow when(BOOLEAN-EXPR) stmt .... stmt when(BOOLEAN-EXPR) stmt .... stmt endcatch /* code after the catch is here */ The current settings of my c-mode variables are: (setq c-indent-level 4) (setq c-continued-statement-offset 4) (setq c-brace-offset -4) (setq c-argdecl-indent 4) (setq c-label-offset 2) This effect can be achieved if I put extra braces in the appropriate places but I would rather avoid this as it only complicates the (already complicated) code. Any help would be appreciated - Neil Smithline ARPA: smithln@cs.rochester.edu UUCP: ..!{allegra,decvax,seismo}!rochester!smithln Mail: CS Dept., University of Rochester, Rochester NY 14627 -- Neil Smithline ARPA: smithln@cs.rochester.edu UUCP: ..!{allegra,decvax,seismo}!rochester!smithln Mail: CS Dept., University of Rochester, Rochester NY 14627