GNU bug report logs - #19385
default align rules doesn't know about Java arrays

Previous Next

Package: emacs;

Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>

Date: Mon, 15 Dec 2014 14:07:02 UTC

Severity: minor

Tags: fixed

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Paul Pogonyshev <pogonyshev <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: default align rules doesn't know about Java arrays
Date: Mon, 15 Dec 2014 15:06:32 +0100
[Message part 1 (text/plain, inline)]
To reproduce:

$ emacs -q

Type the following in a Java buffer:

class X
{
    String field1;
    String[] field2;
    int field3;
    int[] field4;
    X field5;
    X[] field6;
}

Select the six field lines and 'M-x align' them:

class X
{
    String    field1;
    String[] field2;
    int        field3;
    int[] field4;
    X        field5;
    X[] field6;
}

Expected result:

class X
{
    String    field1;
    String[]    field2;
    int        field3;
    int[]    field4;
    X        field5;
    X[]        field6;
}

Emacs version (just compiled trunk): GNU Emacs 25.0.50.1
(x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) of 2014-12-15
[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 151 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.