🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98396

Emacs C-mode, ANSI-C

#98396
From: Bob Fischer
Date: Mon, 29 Jul 1991 14:38
39 lines
1611 bytes
I'm trying to use GNU Emacs C-mode with ANSI-compatible C-code I'm
writing.  It seems to have problems with the new prototypes, used in
place of the old C function headers.  It always wants to indent
my variables like:

plot_sources(
			 Display *dpy,
			 Window xwin,
			 GC   gc,
			 Plot_File  *m)

I want it indented like:

plot_sources(
Display *dpy,
Window xwin,
GC   gc,
Plot_File  *m)

Is there a new version of the C-indenting code for ANSI C?  Or am I
missing something in which variables to set which way?

I'm also having a similar problem with function-calls.  GNU Emacs indents
like:

	draw_just_text(dpy, xwin, gc, 19 , 12*m->current_src + 12 ,
				   m->sources[m->current_src].file_name , 
				   HJ_LEFT, VJ_BASELINE );    

while I want subsequent lines to be indented _exactly_ 4 characters:

	draw_just_text(dpy, xwin, gc, 19 , 12*m->current_src + 12 ,
		m->sources[m->current_src].file_name , 
		HJ_LEFT, VJ_BASELINE );    

Again, is there a way to fix this?

Thanks,
-- Bob
Technical Details
Message-ID: <9107291438.AA27078@hess.geology.yale.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!hess.geology.yale.edu!bobf

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,7929e704e91d7824,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-07-30 04:51:52 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!hess.geology.yale.edu!bobf
From: bobf@hess.geology.yale.edu (Bob Fischer)
Newsgroups: gnu.emacs.bug
Subject: Emacs C-mode, ANSI-C
Message-ID: <9107291438.AA27078@hess.geology.yale.edu>
Date: 29 Jul 91 14:38:14 GMT
Sender: gnulists@ai.mit.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 39
Approved: bug-gnu-emacs@prep.ai.mit.edu