GNU bug report logs - #34245
perl mode aligns code with comments

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Tue, 29 Jan 2019 15:30:04 UTC

Severity: minor

Tags: confirmed, patch

Found in version 28.0.50

Fixed in version 30.1

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#34245: closed (perl mode aligns code with comments)
Date: Wed, 06 Sep 2023 22:16:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 6 Sep 2023 15:15:13 -0700
with message-id <CADwFkm=OPFqWLypN4y1MHGgew_B7P5oRDD6+SREz2XKuseEPcg <at> mail.gmail.com>
and subject line Re: bug#34245: perl mode aligns code with comments
has caused the debbugs.gnu.org bug report #34245,
regarding perl mode aligns code with comments
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
34245: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34245
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: perl mode aligns code with comments
Date: Tue, 29 Jan 2019 22:56:21 +0800
In perl mode, a TAB on the second line below causes

my @genres = (         #["match", "BUT NOT"]
		       ["Rainbow.*Taiwan|Taiwan.*Rainbow"],

But wiser would be like perltidy does:

my @genres = (                      #["match", "BUT NOT"]
    ["Rainbow.*Taiwan|Taiwan.*Rainbow"],


[Message part 3 (message/rfc822, inline)]
From: Stefan Kangas <stefankangas <at> gmail.com>
To: Mauro Aranda <maurooaranda <at> gmail.com>
Cc: 34245-done <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#34245: perl mode aligns code with comments
Date: Wed, 6 Sep 2023 15:15:13 -0700
Version: 30.1

Mauro Aranda <maurooaranda <at> gmail.com> writes:

> 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:
>
>> In perl mode, a TAB on the second line below causes
>>
>> my @genres = (         #["match", "BUT NOT"]
>>                ["Rainbow.*Taiwan|Taiwan.*Rainbow"],
>>
>> But wiser would be like perltidy does:
>>
>> my @genres = (                      #["match", "BUT NOT"]
>>     ["Rainbow.*Taiwan|Taiwan.*Rainbow"],
>
> I don't know why Debbugs marked this as a wishlist, it looks like a bug
> to me.
>
> Patch attached.

Thanks, pushed to master as commit 2a8f458719a.


This bug report was last modified 1 year and 260 days ago.

Previous Next


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