Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

lining up parenthesis

0 views
Skip to first unread message

Gumshoes

unread,
Sep 20, 2001, 2:11:48 AM9/20/01
to
Wondering if any-one can help me. I am trying to set my offset so that my
parenthesis line up with each
other. eg;

void foo
(
arg1,
arg2
);

My current setting in .emacs is as follows.

(c-offsets-alist . ((arglist-intro . +)
(arglist-cont . 0)
(arglist-cont-nonempty . c-lineup-arglist)
(arglist-close .
c-lineup-arglist-close-under-paren))
"my-offsets")

and the usual define a new hook and adding the style and adding the hook to
the c/c++ mode hook etc.
However it doesn't seems to work. I only get:

void foo
(
arg1,
arg2,
);

I even tried changing the c-lineup-arglist-close-under-paren to 0, but still
no luck. Any idea what I am doing wrong
or not doing ?

Thanks in advance,
Gumshoes.


Michael P. Broida

unread,
Sep 20, 2001, 4:33:37 PM9/20/01
to
Gumshoes wrote:
>
> void foo
> (
> arg1,
> arg2,
> );

Could it be that the extraneous final comma ","
after "arg2" confuses the aligner? Remove that
before typing the closing paren and see if that
helps.
(I don't know if it will, but it's worth a try.
That looks like something the aligner might key
off of.)

Mike

Gumshoes

unread,
Sep 20, 2001, 7:37:12 PM9/20/01
to
Unfortunately it is just my typing error in this post :-(

Thanks for spotting that.
"Michael P. Broida" <michael....@boeing.com> wrote in message
news:3BAA52A1...@boeing.com...

0 new messages