From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#22358: 24.5; Analysis and indentation of Java default interface methods incorrect Date: Sat, 23 Jan 2016 19:52:06 +0000 Message-ID: <20160123195206.GB4843@acm.fritz.box> References: <20160113224639.96018.qmail@mail.muc.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1453578630 25190 80.91.229.3 (23 Jan 2016 19:50:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Jan 2016 19:50:30 +0000 (UTC) Cc: 22358-done@debbugs.gnu.org To: Lanning Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 23 20:50:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aN4CL-0008Mc-Kw for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jan 2016 20:50:13 +0100 Original-Received: from localhost ([::1]:58369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aN4CK-0007OV-QL for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jan 2016 14:50:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aN4CH-0007NH-5V for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 14:50:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aN4CG-0002x8-4L for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 14:50:09 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aN4CA-0002wQ-KY; Sat, 23 Jan 2016 14:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aN4CA-0005Tm-B7; Sat, 23 Jan 2016 14:50:02 -0500 Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 23 Jan 2016 19:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 22358 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Mail-Followup-To: 22358@debbugs.gnu.org, acm@muc.de, lanning@gmail.com Original-Received: via spool by 22358-done@debbugs.gnu.org id=D22358.145357858321026 (code D ref 22358); Sat, 23 Jan 2016 19:50:02 +0000 Original-Received: (at 22358-done) by debbugs.gnu.org; 23 Jan 2016 19:49:43 +0000 Original-Received: from localhost ([127.0.0.1]:60805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aN4Br-0005T4-Ja for submit@debbugs.gnu.org; Sat, 23 Jan 2016 14:49:43 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:12598) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aN4Bq-0005Sv-8X for 22358-done@debbugs.gnu.org; Sat, 23 Jan 2016 14:49:42 -0500 Original-Received: (qmail 31602 invoked by uid 3782); 23 Jan 2016 19:49:40 -0000 Original-Received: from acm.muc.de (p5B14783C.dip0.t-ipconnect.de [91.20.120.60]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 23 Jan 2016 20:49:38 +0100 Original-Received: (qmail 31525 invoked by uid 1000); 23 Jan 2016 19:52:06 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111898 Archived-At: Hello again, Lanning. On Wed, Jan 13, 2016 at 04:42:34PM -0800, Lanning wrote: > Yep, that fixes it. Thanks, and esp for the quick turn-around. OK, I've fixed the problem in savannah, so I'm closing this bug. > By "complicated" I mean that there are a lot of connections between things. > Not being familiar with the code, with all the languages supported, and so > on, I have to assume that a small change may have large consequences. > Anyway... I've got a fix for you. The problem has to do with indentation of > multi-line Java annotations. More accurately, the indentation of the next > line after a multi-line annotation. Here's an example that illustrates the > problem. The annotations should all be aligned, and the method should line > up with the all of them. > public class Foo { > @AnAnnotation("hello") > @AnotherAnnotation(list = { "one", "two", > "three", "four" }, > value = "something") > @YetAnother > @AndYetAnother( > a = b, > c = d > ) > @DieAnotherDay("you bet") > public void run() { > } > } // Foo > The problem is that the subsequent line is indented relative to the > previous *line*, not the previous "expression". You may not believe this, but this bug was fixed (for the upcoming 25.1 release) on 12th January, the day before you sent me your last post. The solution implemented is for the anchor point to be at the indentation of the line containing the start of the previous annotation. If you'd like, I can send you a patch based on Emacs 24.5. -- Alan Mackenzie (Nuremberg, Germany).