GNU bug report logs - #8165
24.0.50; cperl indentation

Previous Next

Package: emacs;

Reported by: sds <at> gnu.org

Date: Thu, 3 Mar 2011 16:38:01 UTC

Severity: minor

Found in version 24.0.50

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: Harald Jörg <haj <at> posteo.de>
To: 8165 <at> debbugs.gnu.org
Subject: bug#8165: cperl-mode: The wanted indentation is available via customize
Date: Tue, 1 Sep 2020 18:22:19 +0200
The desired indentation of data

use Class::Struct Foo => [
    a => '$',
    b => '$',
    c => '$',
];

is already available.  As so many things in cperl-mode, it can be
customized:

(setq cperl-close-paren-offset -4)
(setq cperl-indent-parens-as-block t)

Therefore I suggest to close this bug.

These are also the recommended settings in the most influential book
Perl Best Practices (PBP) by Damian Conway.  I guess I should add
the PBP settings for indentation in a new value to cperl-style-alist,
but that's probably beyond the scope of this bug report.
-- 
Cheers,
haj






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

Previous Next


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