From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Oliver Newsgroups: gmane.emacs.bugs Subject: bug#11118: New option perl-indent-parens-as-block Date: Wed, 28 Mar 2012 21:56:45 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=90e6ba6e8dce9d911804bc53d9aa X-Trace: dough.gmane.org 1332982910 13243 80.91.229.3 (29 Mar 2012 01:01:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2012 01:01:50 +0000 (UTC) To: 11118@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 29 03:01:46 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SD3kI-0001ha-GF for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Mar 2012 03:01:46 +0200 Original-Received: from localhost ([::1]:35551 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SD3kH-0006Y3-NR for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Mar 2012 21:01:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SD3kE-0006X5-4q for bug-gnu-emacs@gnu.org; Wed, 28 Mar 2012 21:01:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SD3kC-0004oU-Ct for bug-gnu-emacs@gnu.org; Wed, 28 Mar 2012 21:01:41 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SD3kC-0004o5-71 for bug-gnu-emacs@gnu.org; Wed, 28 Mar 2012 21:01:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SD4EY-0000Gl-E6 for bug-gnu-emacs@gnu.org; Wed, 28 Mar 2012 21:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Peter Oliver Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Mar 2012 01:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11118 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13329847551001 (code B ref -1); Thu, 29 Mar 2012 01:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Mar 2012 01:32:35 +0000 Original-Received: from localhost ([127.0.0.1]:43863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SD4E4-0000G2-36 for submit@debbugs.gnu.org; Wed, 28 Mar 2012 21:32:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40647) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SD4DY-0000F5-Vf for submit@debbugs.gnu.org; Wed, 28 Mar 2012 21:32:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SD3j9-0004S0-EU for submit@debbugs.gnu.org; Wed, 28 Mar 2012 21:00:36 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:58927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SD3j9-0004Ro-4T for submit@debbugs.gnu.org; Wed, 28 Mar 2012 21:00:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCzvb-000415-9c for bug-gnu-emacs@gnu.org; Wed, 28 Mar 2012 16:57:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCzvZ-0002Sd-Ab for bug-gnu-emacs@gnu.org; Wed, 28 Mar 2012 16:57:10 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:47186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCzvZ-0002Rg-2s for bug-gnu-emacs@gnu.org; Wed, 28 Mar 2012 16:57:09 -0400 Original-Received: by iajr24 with SMTP id r24so2450073iaj.0 for ; Wed, 28 Mar 2012 13:57:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=N1MxbDVDPBzyKso5AWhYDu7F9E35EWKj5vBwGkYZ/LY=; b=Gno7iX4cYv926pst60aJvSgN8bE0zXPolrBmLdHLpbrN6JrZ6V3p+71hG5wtonzIn0 ThXWj0fCS1tc1PqkcnV6GJ+GA+JysrbpPVilj3pc9Ck/L52pPlyRLAbFOI/Na12xFID0 m5LhgAW9qzfHoMigd1c1ly0guPAYOjsnir5nM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type:x-gm-message-state; bh=N1MxbDVDPBzyKso5AWhYDu7F9E35EWKj5vBwGkYZ/LY=; b=LN/Zqvy2VjRDl25DVLPZDuJDHWbzhj06vbcGE5QCXEhEF/i7bbd9iEli8m1C+/lFSm ZpamGJar9UmiomvCc1cBVwOr8f5R/l7yYlrqHm+YegHktv96LhkmpnJPEH219MAhbwgS 6h4lYzxK6AuuaZIscwI9yEoVrzi1ubkxeOdEAPIanzvhtsa4PRmMv8lgjAIHMwhY0lIx W8sfa9TYeCb4lmyo8DwcCOxot1VqRHx/2Dc1XzJIDNFqlPOe+6kQeQAW6f7eS4AGUh4u i8rYQoTT/JvfNTrki9NCrAMITATiS7g5/JnPI8L4DumEV+XyRi64XQiZBiYlEup/c37F DGfw== Original-Received: by 10.42.141.72 with SMTP id n8mr18560143icu.47.1332968226132; Wed, 28 Mar 2012 13:57:06 -0700 (PDT) Original-Received: by 10.231.197.165 with HTTP; Wed, 28 Mar 2012 13:56:45 -0700 (PDT) X-Google-Sender-Auth: Nv26oMcwpnJ0gWPQqqCFFswl5wc X-Gm-Message-State: ALoCoQmyDzt20lhAJWpZK5MdNDC66puijCbOP/1M87nB2igyS83p0BTnz7Flf9FeiDOM1gxf4CRg X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:58271 Archived-At: --90e6ba6e8dce9d911804bc53d9aa Content-Type: text/plain; charset=ISO-8859-1 At present, perl-mode aligns non-block closing brackets with the contents of the brackets, thus: my @list = ( 'item one', 'item two', 'item three', ); Now, cperl-mode features on option, cperl-indent-parens-as-block, that causes the closing bracket to be aligned with the line of the opening bracket, as follows: my @list = ( 'item one', 'item two', 'item three', ); I personally find the latter behaviour easier to follow, and would like perl-mode to be able to do the same thing. A patch is on the way... -- Peter Oliver --90e6ba6e8dce9d911804bc53d9aa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable At present, perl-mode aligns non-block closing brackets with the contents o= f the brackets, thus:

my @list =3D (
=A0=A0=A0 'item one',
=A0=A0=A0 'item two',
=A0=A0=A0 'item three',
=A0=A0=A0 );

Now, cperl-mode feat= ures on option, cperl-indent-parens-as-block, that causes the closing brack= et to be aligned with the line of the opening bracket, as follows:

m= y @list =3D (
=A0=A0=A0 'item one',
=A0=A0=A0 'item two',
=A0=A0=A0= 'item three',
);

I personally find the latter behaviour = easier to follow, and would like perl-mode to be able to do the same thing.=

A patch is on the way...

--
Peter Oliver

--90e6ba6e8dce9d911804bc53d9aa--