From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: ERDI Gergo Newsgroups: gmane.emacs.help 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) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1068491336 25751 80.91.224.253 (10 Nov 2003 19:08:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Nov 2003 19:08:56 +0000 (UTC) Cc: cactus@cactus.rulez.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 10 20:08:52 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AJHPA-0003Y6-00 for ; Mon, 10 Nov 2003 20:08:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AJIId-0000JJ-SJ for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Nov 2003 15:06:11 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AJIH7-0008Ol-MS for help-gnu-emacs@gnu.org; Mon, 10 Nov 2003 15:04:37 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AJIGb-00084L-JM for help-gnu-emacs@gnu.org; Mon, 10 Nov 2003 15:04:36 -0500 Original-Received: from [195.228.240.91] (helo=darmachakra.axelero.hu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AJICZ-0005TY-Fc for help-gnu-emacs@gnu.org; Mon, 10 Nov 2003 14:59:55 -0500 Original-Received: from localhost (localhost-02 [127.0.2.1]) by darmachakra.axelero.hu (8.12.10/8.12.10) with SMTP id hAAIwSdK048853; Mon, 10 Nov 2003 19:58:28 +0100 (CET) Original-Received: from fe03.axelero.hu [127.0.2.1] via SMTP gateway by darmachakra.axelero.hu [195.228.240.91]; id A0BECC17584 at Mon, 10 Nov 2003 19:58:28 +0100 Original-Received: from ds9.cactus (ktv32-209-72.catv-pool.axelero.hu [62.201.72.209]) by fe03.axelero.hu (8.12.10/8.12.10) with ESMTP id hAAIwR65048801; Mon, 10 Nov 2003 19:58:27 +0100 (CET) Original-Received: from ds9.cactus ([10.0.0.1] ident=cactus) by ds9.cactus with esmtp (Exim 3.36 #1 (Debian)) id 1AJHGp-0000i8-00; Mon, 10 Nov 2003 20:00:15 +0100 X-Sender: cactus@ds9.cactus Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14008 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14008 [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]