[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cc-mode: Reverting to the 'dumber' indentation of nested function calls,
From: |
ERDI Gergo |
Subject: |
cc-mode: Reverting to the 'dumber' indentation of nested function calls, as seen in Emacs20 |
Date: |
Mon, 10 Nov 2003 20:00:15 +0100 (CET) |
[Please CC replies to cactus@cactus.rulez.org]
Hi,
I've looked around in the depths of cc-mode but couldn't find the solution
for this one. The short story is that I'd like to get back a default
behaviour of Emacs20 when breaking lines with nested function calls.
Suppose I have this line of code:
long_function_name (bar (baz (0)));
Suppose I have c-basic-offset set to 2. If I put the baz (0) in a new
line, here's what I get with emacs20 ('#' denotes 2's of spaces inserted
by c-basic-offset):
##long_function_name (bar (
####baz (0)));
However, with Emacs21, here's what I get (again, '#' denotes double-spaces
from c-basic-offset. '$' denotes spaces inserted by an unknown smart
offset-calculator that I wasn't able to hunt down)
##long_function_name (bar (
$$$$$$$$$$$$$$$$$$$$$$##baz (0)));
I've compared the c-offsets-alist of emacs20 and emacs21 but couldn't find
the offset-calculator function. If I had that, I guess I'd just substitute
it with a normal indentation offset (c-basic-offset number of spaces) and
I'd be all set.
So, who's inserting all those '$'s and how do I get rid of it?
Thanks,
Gergo
[Please CC replies to cactus@cactus.rulez.org]
--
.--= ULLA! =---------------------. `We are not here to give users what
\ http://cactus.rulez.org \ they want' -- RMS, at GUADEC 2001
`---= cactus@cactus.rulez.org =---'
Jesus has changed your life. Save changes? [Yes] [No] [Cancel]
- cc-mode: Reverting to the 'dumber' indentation of nested function calls, as seen in Emacs20,
ERDI Gergo <=