From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Klaus Berndl Newsgroups: gmane.emacs.help Subject: Re: Lobotimze Java mode indentation engine? Date: 29 Jul 2003 16:07:45 +0200 Organization: sd&m AG, Muenchen, Germany Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <84ptjto7vz.fsf@slowfox.is.informatik.uni-duisburg.de> <843cgpzbeb.fsf@slowfox.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1059487900 18103 80.91.224.249 (29 Jul 2003 14:11:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Jul 2003 14:11:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 29 16:11:37 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19hVCS-0004hX-00 for ; Tue, 29 Jul 2003 16:11:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19hVBZ-0006K5-NU for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jul 2003 10:10:41 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!news.sdm.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 51 Original-NNTP-Posting-Host: sachrang.muc.sdm.de Original-X-Trace: solti3.muc.sdm.de 1059487665 963 193.102.181.185 (29 Jul 2003 14:07:45 GMT) Original-X-Complaints-To: usenet@news.sdm.de Original-NNTP-Posting-Date: 29 Jul 2003 14:07:45 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:115528 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:11445 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11445 On Tue, 29 Jul 2003, Kai Großjohann wrote: > Klaus Berndl writes: > > > I have written this small code only by hitting return, i.e. autom. > > indented: > > > > ,---- > > | void > > | test_function() > > | { > > | function_call(arg1, > > | arg2, > > | arg3); > > | > > | function_call( > > | arg1, > > | arg2, > > | arg3); > > | } > > `---- > > > > I think, this is what you want, isn't it? > > BTW: IMHO this is useful not only for Java, but also for C and C++.... > > Yes, indeed, this is what I want. Now I had another look at the > docs, and found that (c-set-offset 'arglist-intro '+) did the trick. > > I found this by doing C-c C-s on the b line, which gave me > arglist-cont-nonempty: > > foo(a, > b); > > And then I did C-c C-s on this a line, which gave me arglist-intro: > > foo( > a, > b); Yes, thats the way i do this too... But what I'm wondering why it has not worked for you before, because AFAIK arglist-intro is set by default to +?! Klaus -- Klaus Berndl mailto: klaus.berndl@sdm.de sd&m AG http://www.sdm.de software design & management Thomas-Dehler-Str. 27, 81737 München, Germany Tel +49 89 63812-392, Fax -220