GNU bug report logs - #8062
perl-mode final ); indenting

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Thu, 17 Feb 2011 14:43:02 UTC

Severity: minor

Tags: confirmed

Found in version 26.2

Fixed in version 29.1

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mauro Aranda <maurooaranda <at> gmail.com>
To: 8062 <at> debbugs.gnu.org
Cc: stefan <at> marxiste.se, jidanni <at> jidanni.org
Subject: bug#8062: perl-mode final ); indenting
Date: Mon, 19 Sep 2022 17:22:33 -0300
Stefan Kangas <stefan <at> marxist.se> writes:

> jidanni <at> jidanni.org writes:
>
>> emacs -Q this file.pl, emacs-version "24.0.50.1"
>>
>> #!/usr/bin/perl
>> my %h = (
>>     '1-3' => {
>>         name  => '慶福街 1-3 Qingfu St.',
>>         coord => '120.865225,24.181802',
>>     },
>>     '1-6' => {
>>         name  => '慶福街 1-6 Qingfu St.',
>>         coord => '120.866215,24.181668',
>>     }
>>     ); #<--TAB put this here. It should be in column one.
>> Run it through perltidy to check.
>
> I can reproduce this bug on Emacs 26.2.
>

This was a bug back then, but since fc72b15c777 there's a new option:
perl-indent-parens-as-block.  Customizing it to non-nil gives the desired
indentation.

See Bug#11118, which I think should be merged with this one.






This bug report was last modified 2 years and 268 days ago.

Previous Next


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