#define's and cc-mode (was Re: Label layout)
- From: Owen Taylor <owt1 cornell edu>
- To: Tim Janik <Tim Janik hamburg netsurf de>
- Cc: gtk-list redhat com
- Subject: #define's and cc-mode (was Re: Label layout)
- Date: Mon, 15 Dec 1997 21:35:57 -0500
Tim Janik <Tim.Janik@Hamburg.Netsurf.DE> writes:
> is thee any *usefull* way to edit c macro definitions in emacs
> (with gnu c-mode)?
> it treats the line continuation on defines in a horibble way:
> 
> #define MACRO(x)	printf("huhu" \
> 					"you!\n");
> 					^
> 					this is it's default indentation
> 					for continuations ;((
> </BIG-OT>
Upgrade to Emacs 20.2 (or its cc-mode) ?
For me, it indents that as:
#define MACRO(x)        printf("huhu" \
			       "you!\n");
(It even seems to recognize continuation lines of macros and
do something a little different for them - isn't quite as smart
about them as it is about normal C code, but still not too bad.)
                                        Owen
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]