From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#19709: Problem with indentation for the closing parenthesis in cperl-mode version 6.1 Date: Fri, 5 Jul 2019 22:14:06 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="25731"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 19709@debbugs.gnu.org To: =?UTF-8?Q?H=C3=A5kon_?= =?UTF-8?Q?H=C3=A6gland?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 05 22:15:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hjUby-0006UG-PM for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jul 2019 22:15:14 +0200 Original-Received: from localhost ([::1]:55736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjUbx-0004Lh-CZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jul 2019 16:15:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60336) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjUbn-0004LZ-8J for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2019 16:15:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjUbm-0005Ro-9d for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2019 16:15:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45000) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hjUbm-0005Rf-67 for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2019 16:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hjUbl-0007z8-Oa for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2019 16:15:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Jul 2019 20:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19709 X-GNU-PR-Package: emacs Original-Received: via spool by 19709-submit@debbugs.gnu.org id=B19709.156235766530634 (code B ref 19709); Fri, 05 Jul 2019 20:15:01 +0000 Original-Received: (at 19709) by debbugs.gnu.org; 5 Jul 2019 20:14:25 +0000 Original-Received: from localhost ([127.0.0.1]:53821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjUbB-0007y1-Al for submit@debbugs.gnu.org; Fri, 05 Jul 2019 16:14:25 -0400 Original-Received: from mail-wr1-f42.google.com ([209.85.221.42]:46413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjUb9-0007xl-Gq for 19709@debbugs.gnu.org; Fri, 05 Jul 2019 16:14:23 -0400 Original-Received: by mail-wr1-f42.google.com with SMTP id z1so6374770wru.13 for <19709@debbugs.gnu.org>; Fri, 05 Jul 2019 13:14:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc :content-transfer-encoding; bh=QQpr7sDgLS2mYr3UCzqJhiwhByarASOvJknw73CWLvQ=; b=tjKdC9WmsAIy7S8qG2hX73OuX5Hu8tHviaYN4vFAOdp8Z+tKFrwa7BHJHzfKQBdm5P TvW3k3EBtkVUwqsrw6H3Kfpgnh8Yr3CTKh6WfeFBnibPxwl4H+hUvjfN84yOHNOWqu6n qiXnKZW6K8XuEFLcKKNLsWMfEFWKTeR/CSOycWCBHpTwLbH0WALsiAgWVj84glClZNhY LH3dIV0a8jr4fn0sFKnezuq7il63piGha83AUJBpRMC/xnF+Xh3CETR+m7Gb7FzwKApy RfdQ6fli8gMj8hGGFxPJiB5CSHaEga1vqbpMrLsL4MadXxZPXbIlhwZ49H75qrNA0oOT Begg== X-Gm-Message-State: APjAAAVQHFchURkN5Yt+RBE3Uj+RL0arQicZUuF3DpKgOfUONbb2DaVi DrwaGNGmjxbEpsR/zPTGjdEdjw6Sr4EwcglQTRk= X-Google-Smtp-Source: APXvYqycbsSS8TvmFPz9imebghaw6nRy0su0KN926fYY8KQ1oadRy+t5jmfop6RapjrzI/js7pq56BeMtRE42yOAUBM= X-Received: by 2002:a5d:4609:: with SMTP id t9mr4844334wrq.85.1562357657797; Fri, 05 Jul 2019 13:14:17 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:162159 Archived-At: H=C3=A5kon H=C3=A6gland writes: > I have problems with correct alignment of the closing parenthesis in cper= l-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 cpe= rl-mode. I am using Emacs 24.4 on Ubuntu 14.04, and the cperl-mode that cam= e with the installation (/opt/emacs24.4/share/emacs/24.4/lisp/progmodes/cpe= rl-mode.el.gz) is version 6.1 > of cperl-mode. > > I then tried to install cperl-mode from ELPA using Emacs 24.4 package man= ager (list-packages), and it turned out that it gave me version 5.23 of cpe= rl-mode which also indented the closing parenthesis correctly.. I can reproduce this on Emacs 26.2. BTW, the problem goes away when I set: (setq cperl-label-offset 0) But of course you shouldn't have to do that. Best regards, Stefan Kangas