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


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

From: Mauro Aranda <maurooaranda <at> gmail.com>
To: 34245 <at> debbugs.gnu.org
Cc: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#34245: perl mode aligns code with comments
Date: Thu, 20 Oct 2022 08:51:32 -0300
[Message part 1 (text/plain, inline)]
severity 34245 minor
tags 34245 patch
quit


積丹尼 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.

[0001-Fix-perl-mode-indentation-after-a-hanging-paren.patch (text/x-patch, attachment)]

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

Previous Next


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