GNU bug report logs - #8165
24.0.50; cperl indentation

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: sds@HIDDEN; dated Thu, 3 Mar 2011 16:38:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Mar 2011 16:37:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 03 11:37:43 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PvBX5-00060q-6L
	for submit <at> debbugs.gnu.org; Thu, 03 Mar 2011 11:37:43 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <sam.steingold@HIDDEN>) id 1PvBX3-00060f-0v
	for submit <at> debbugs.gnu.org; Thu, 03 Mar 2011 11:37:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sam.steingold@HIDDEN>) id 1PvBWt-0007q7-5Q
	for submit <at> debbugs.gnu.org; Thu, 03 Mar 2011 11:37:35 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:34180)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sam.steingold@HIDDEN>) id 1PvBWt-0007q2-0c
	for submit <at> debbugs.gnu.org; Thu, 03 Mar 2011 11:37:31 -0500
Received: from [140.186.70.92] (port=33878 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PvBWn-0001b8-Pk
	for bug-gnu-emacs@HIDDEN; Thu, 03 Mar 2011 11:37:30 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sam.steingold@HIDDEN>) id 1PvBWi-0007kp-Ij
	for bug-gnu-emacs@HIDDEN; Thu, 03 Mar 2011 11:37:25 -0500
Received: from mail-vx0-f169.google.com ([209.85.220.169]:55304)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sam.steingold@HIDDEN>)
	id 1PvBWc-0007iY-IA; Thu, 03 Mar 2011 11:37:14 -0500
Received: by vxc38 with SMTP id 38so1424023vxc.0
	for <multiple recipients>; Thu, 03 Mar 2011 08:37:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:sender:from:to:subject:user-agent
	:mail-copies-to:return-receipt-to:reply-to:x-attribution
	:x-disclaimer:date:message-id:mime-version:content-type;
	bh=Cno9NFtSsvHbXb4WBovxvNXG/lKl25wKPerqT7Cqx0U=;
	b=k5/RDlKoaKgIlaYK9uLRHjuFqcqRzIZ1A6YOlcn/lQfLd/CNzO8y/Wp1T+qxhSaAAW
	gYArBgKlq1EFnJTp0jvsdkh8KDSeqKJt0CM/2Wsl6BgIBuPODCsRtONJguA5QSCyhzuX
	vzb7VYytcwoRmExc7BnhoH7dtWY6gGDzHvjj8=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=sender:from:to:subject:user-agent:mail-copies-to:return-receipt-to
	:reply-to:x-attribution:x-disclaimer:date:message-id:mime-version
	:content-type;
	b=JX6twJyC5k0dQRZvZznlmqX60WLKP+gWHCojZUwiHB4RpsJgNFHlunaPSDRrEVlQPr
	Mxk9toLRK6oVOsgBwZM8ZyB/krRUD+omubNCCanjZLRa7fBjdbL/Fv0F/hMdlazIWJUZ
	tb1MAEzbqtgP4damRf2NpoisB93NV51s8pQt8=
Received: by 10.52.90.208 with SMTP id by16mr2102867vdb.280.1299170232799;
	Thu, 03 Mar 2011 08:37:12 -0800 (PST)
Received: from tbox.wtc.algo (rrcs-24-103-48-205.nyc.biz.rr.com
	[24.103.48.205])
	by mx.google.com with ESMTPS id v7sm220950vch.11.2011.03.03.08.37.11
	(version=TLSv1/SSLv3 cipher=OTHER);
	Thu, 03 Mar 2011 08:37:11 -0800 (PST)
From: Sam Steingold <sds@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.0.50; cperl indentation
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
Mail-Copies-To: never
X-Attribution: Sam
X-Disclaimer: You should not expect anyone to agree with me.
Date: Thu, 03 Mar 2011 11:37:10 -0500
Message-ID: <svy64wyxc9.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 199.232.76.165
X-Spam-Score: -5.6 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: sds@HIDDEN
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.7 (-----)

cperl-mode mis-indents _data_ (as opposed to _code_).
e.g.,

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

is indented as

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

which is much less readable.
the same goes for

my $foo = [
    "a",
    "b",
    ("c","d"),
];

I understand that this might be a matter of taste, but it would be nice
if my preferred indentation were also available.

PS. I am aware (and not fond) of the alternative

my $foo =
  [ .... ];


-- 
Sam Steingold (http://sds.podval.org/) on CentOS release 5.3 (Final) X
http://mideasttruth.com http://iris.org.il
http://ffii.org http://memri.org http://pmw.org.il http://www.memritv.org
The paperless office will become a reality soon after the paperless toilet.




Acknowledgement sent to sds@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#8165; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

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