unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* cc-mode: Reverting to the 'dumber' indentation of nested function calls, as seen in Emacs20
@ 2003-11-10 19:00 ERDI Gergo
  2003-11-13 19:33 ` ERDI Gergo
  0 siblings, 1 reply; 5+ messages in thread
From: ERDI Gergo @ 2003-11-10 19:00 UTC (permalink / raw)
  Cc: cactus

[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]

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <mailman.112.1068494680.2005.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2003-12-07 17:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-10 19:00 cc-mode: Reverting to the 'dumber' indentation of nested function calls, as seen in Emacs20 ERDI Gergo
2003-11-13 19:33 ` ERDI Gergo
     [not found] <mailman.112.1068494680.2005.help-gnu-emacs@gnu.org>
2003-11-10 23:08 ` Kevin Rodgers
2003-11-11 16:30   ` ERDI Gergo
2003-12-07 17:01 ` Kai Grossjohann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).