From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?H=C3=A5kon_?= =?UTF-8?Q?H=C3=A6gland?= Newsgroups: gmane.emacs.bugs Subject: bug#19709: Problem with indentation for the closing parenthesis in cperl-mode version 6.1 Date: Wed, 28 Jan 2015 08:30:05 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b33d9741b3492050db157cd X-Trace: ger.gmane.org 1422430271 7463 80.91.229.3 (28 Jan 2015 07:31:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2015 07:31:11 +0000 (UTC) To: 19709@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 28 08:31:11 2015 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 1YGN5i-000280-9V for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Jan 2015 08:31:10 +0100 Original-Received: from localhost ([::1]:51653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGN5h-0006QK-O6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Jan 2015 02:31:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGN5c-0006PN-KX for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 02:31:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGN5b-0006OL-G2 for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 02:31:04 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGN5b-0006OG-C0 for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 02:31:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YGN5b-0000oc-0P for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 02:31:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?H=C3=A5kon_?= =?UTF-8?Q?H=C3=A6gland?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jan 2015 07:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19709 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.14224302183068 (code B ref -1); Wed, 28 Jan 2015 07:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jan 2015 07:30:18 +0000 Original-Received: from localhost ([127.0.0.1]:58407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGN4r-0000nP-O7 for submit@debbugs.gnu.org; Wed, 28 Jan 2015 02:30:18 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39880) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGN4o-0000n7-OK for submit@debbugs.gnu.org; Wed, 28 Jan 2015 02:30:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGN4i-0006B3-IH for submit@debbugs.gnu.org; Wed, 28 Jan 2015 02:30:09 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:40651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGN4i-0006Av-Fh for submit@debbugs.gnu.org; Wed, 28 Jan 2015 02:30:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGN4h-0005vC-9l for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 02:30:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGN4g-00066a-BR for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 02:30:07 -0500 Original-Received: from mail-ob0-x22b.google.com ([2607:f8b0:4003:c01::22b]:61477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGN4g-00065A-75 for bug-gnu-emacs@gnu.org; Wed, 28 Jan 2015 02:30:06 -0500 Original-Received: by mail-ob0-f171.google.com with SMTP id va2so17834637obc.2 for ; Tue, 27 Jan 2015 23:30:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=wTP1SjwsH+aL4sJGJyZTbeRdSewDuMG8Qow1as/X95A=; b=txx1OKMA0aUTVnh6YsusMi69vNJFCy6vdZlJ3TmStqwh3HZgZapROmYXwf+feNb2w+ RvkkBxq8EB5jjdjObEmUYzIEsoKOM1mb//pMO1pEIV0LrKE7G81h+2kjTZSZc5i5fAA9 al2+T423Ksc3ttX/7SjXbg0f2kxqmUBkCZHdbJqCkgpnnDRLgzZU582oCtOpp2cLoJiI crscGVIeMwOXiHzS1nlHS4OvcvwCIO+b9W7+HkPNJv9irDsvYL9L7axnx+E/jK8vDcaP 9JooJWBo0MJyzTP4RPynw8vLTVP6Z8c0LeE6nUIHgesqL74+lmrwwB54/eEk3MkVeC3M ul4g== X-Received: by 10.60.92.5 with SMTP id ci5mr1238998oeb.26.1422430205324; Tue, 27 Jan 2015 23:30:05 -0800 (PST) Original-Received: by 10.76.19.167 with HTTP; Tue, 27 Jan 2015 23:30:05 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:98824 Archived-At: --047d7b33d9741b3492050db157cd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have problems with correct alignment of the closing parenthesis in cperl-mode. For example consider the following Perl code: my $a =3D func1( Module::test() ); my $b =3D func2( test() ); my $c =3D func3( Module::test(), ); We see that the closing parenthesis is not correctly indented for func1, but for func2 and func3 it is correct. In cperl-mode-hook I have (setq cperl-indent-level 4) (setq cperl-indent-parens-as-block t) (setq cperl-close-paren-offset -4) It seems to me that this behavior is related to the newest version of cperl-mode. I am using Emacs 24.4 on Ubuntu 14.04, and the cperl-mode that came with the installation (/opt/emacs24.4/share/emacs/24.4/lisp/progmodes/cperl-mode.el.gz) is version 6.1 of cperl-mode. I then tried to install cperl-mode from ELPA using Emacs 24.4 package manager (list-packages), and it turned out that it gave me version 5.23 of cperl-mode which also indented the closing parenthesis correctly.. M-x emacs-version: GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2015-01-11 on hakon-ThinkPad-Edge-E540 I built Emacs 24.4.1 from source, using with `--with-xft` option to configure. Best regards, H=C3=A5kon H=C3=A6gland --047d7b33d9741b3492050db157cd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have problems with correct alignment of the closing= parenthesis in cperl-mode. For example consider the following Perl code:

my $a =3D func1(
=C2=A0 =C2=A0 Module::te= st()
=C2=A0 );

my $b =3D func2(
=C2=A0 =C2=A0 test()
);

my $c =3D func= 3(
=C2=A0 =C2=A0 Module::test(),
);
We see th= at the closing parenthesis is not correctly indented for func1, but for fun= c2 and func3 it is correct.

In cperl-mode-hoo= k I have

(setq cperl-indent-level 4)
(se= tq cperl-indent-parens-as-block t)
(setq cperl-close-paren-offset= -4)

It seems to me that this behavior = is related to the newest version of cperl-mode. I am using Emacs 24.4 on Ub= untu 14.04, and the cperl-mode that came with the installation (/opt/emacs2= 4.4/share/emacs/24.4/lisp/progmodes/cperl-mode.el.gz) is version 6.1 of cpe= rl-mode.

I then tried to install cperl-mode from E= LPA using Emacs 24.4 package manager (list-packages), and it turned out tha= t it gave me version 5.23 of cperl-mode which also indented the closing par= enthesis correctly..

M-x emacs-version:=

GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ = Version 3.10.8) of 2015-01-11 on hakon-ThinkPad-Edge-E540

I built Emacs 24.4.1 from source, using with `--with-xft` option to= configure.

Best regards,
H=C3=A5k= on H=C3=A6gland
--047d7b33d9741b3492050db157cd--