From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: J Richardson Newsgroups: gmane.emacs.help Subject: Re: Java mode indention Date: 12 Aug 2003 13:03:04 -0400 Organization: IBM Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <5lvft5quts.fsf@rum.cs.yale.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1060708339 22069 80.91.224.253 (12 Aug 2003 17:12:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Aug 2003 17:12:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 12 19:12:17 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 19mcgz-0000k6-01 for ; Tue, 12 Aug 2003 19:12:17 +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 19mcdL-0003hO-UM for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Aug 2003 13:08:31 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19mca8-0008QE-1r for help-gnu-emacs@gnu.org; Tue, 12 Aug 2003 13:05:12 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19mcZK-0006B2-1n for help-gnu-emacs@gnu.org; Tue, 12 Aug 2003 13:04:53 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19mcZG-00060y-P1 for help-gnu-emacs@gnu.org; Tue, 12 Aug 2003 13:04:18 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19mcaU-0004nj-00 for ; Tue, 12 Aug 2003 19:05:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19mcaT-0004nb-00 for ; Tue, 12 Aug 2003 19:05:33 +0200 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 19mcZE-0005U2-00 for ; Tue, 12 Aug 2003 19:04:16 +0200 Original-Lines: 38 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 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:11755 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11755 "Stefan Monnier" writes: > > Writer out = new BufferedWriter(new FileWriter( > > "filename.log"))); > [...] > > Writer out = new BufferedWriter(new FileWriter( > > "filename.log"))); > > How do you deal with multiple arguments as in: > > Writer out = new BufferedWriter(new FileWriter( > "filename.log"), > secondarg)); > or > Writer out = new BufferedWriter(firstarg, > new FileWriter( > "filename.log"))); What it's doing now (after I tinkered with it) is: Writer out = new BufferedWriter(new FileWriter( "filename.log"), secondarg); Writer out = new BufferedWriter(firstarg, new FileWriter( "filename.log")); Which is ok, though I'm of two minds about the extra indent level on the second one. If I had a lot of nested calls with multiple parameters it would be helpful, but I don't see that much. I don't run into lots of long nested calls except with IO Streams and Readers/Writers in Java, and I rarely use more than one parameter with them. As long as the wrapped line ends up far enough to the left that I have enough space to type something useful it doesn't bother me. Jen