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#11733: 24.1; cperl indentation bugs Date: Sat, 21 Sep 2019 02:50:55 +0200 Message-ID: References: <871ulcdhkv.fsf@ypig.lip.ens-lyon.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="30320"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 11733@debbugs.gnu.org To: Vincent Lefevre Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 21 02:52:11 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 1iBTdC-0007ko-Qt for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Sep 2019 02:52:10 +0200 Original-Received: from localhost ([::1]:36448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBTdB-0007NU-KR for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Sep 2019 20:52:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46853) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBTd5-0007NM-IV for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2019 20:52:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iBTd4-0001RB-HD for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2019 20:52:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50021) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iBTd4-0001Ql-0Y for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2019 20:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iBTd3-0000NB-TW for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2019 20:52:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <871ulcdhkv.fsf@ypig.lip.ens-lyon.fr> Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Sep 2019 00:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11733 X-GNU-PR-Package: emacs Original-Received: via spool by 11733-submit@debbugs.gnu.org id=B11733.15690270771368 (code B ref 11733); Sat, 21 Sep 2019 00:52:01 +0000 Original-Received: (at 11733) by debbugs.gnu.org; 21 Sep 2019 00:51:17 +0000 Original-Received: from localhost ([127.0.0.1]:58842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBTcK-0000Lz-Mi for submit@debbugs.gnu.org; Fri, 20 Sep 2019 20:51:16 -0400 Original-Received: from mail-pf1-f180.google.com ([209.85.210.180]:33074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBTcG-0000Li-4u for 11733@debbugs.gnu.org; Fri, 20 Sep 2019 20:51:15 -0400 Original-Received: by mail-pf1-f180.google.com with SMTP id q10so5696820pfl.0 for <11733@debbugs.gnu.org>; Fri, 20 Sep 2019 17:51:12 -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; bh=b0TQwwH+EyPN94X0UTRkVc0l/CHjtwZ6is+MINicuAc=; b=aE4UPwD4qsEOfp8y7vZTg3BKHVIoPSjRJKM9RsKiISivKMVo4uF+jsMrg+2aCqAvL1 oCc8XLp4vq6E/gR4ZPAYtLFPPaHQ0M0imm92b3STYDEgF3vfn24w5AAT+sYNpC5lKJmi ycQIeKxLoM7fOqfU634nHUvSw9MILCQ4yL+DCyqFyQ4F/p2/kOc2ETWUek+dl5mzuKYz IT0XeR+ZBc52jkQRIlh9cQv7SCE9z/lMNWn7t2P6bSu6BCrdqxrlpJfcl97GGC1xhfpB V0KLms5ccCeY64BViNxbQ64TR8oJTLCvjPt1yz3W8KFyMCTPGNLgcI8osVUvgknY9ond pmSg== X-Gm-Message-State: APjAAAVG/NbTQZDcuZTaF2YCqxkAIu54pATBM25GR9ULT1RKPTFSCfUa RBadOVpNvy8m0v6V5uH8TQDHA+INkRqMQxup8S0= X-Google-Smtp-Source: APXvYqzpwh8Zu+k91AAckzJC87m08YGGDNhYVszAF99Exb4KPoPffy6BXgG9PTjIOiZlbmBgGo06baOwwM/8YffLrxo= X-Received: by 2002:a17:90b:8d1:: with SMTP id ds17mr1231233pjb.106.1569027066244; Fri, 20 Sep 2019 17:51:06 -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:166827 Archived-At: Vincent Lefevre writes: > The indentation in CPerl mode is buggy on sub, even with the default > configuration (emacs -Q). Open the following file: > > ---------------------------------------- > #!/usr/bin/env perl > # -*- mode: cperl -*- > > sub foo > { > } > > sub bar > { > } > ---------------------------------------- > > and hit the [TAB] key over the "sub bar" line. This line is indented > by 2 columns instead of being left on the first column. More generally > this happens on all subs except the first one. > > [TAB] on the '{' of sub bar (line 9 of the script) gives a 4-column > indentation instead of 2, but this may be a consequence of the above > problem. I can reproduce this on Emacs 26.1. > Other indentation bugs: > > ---------------------------------------- > #!/usr/bin/env perl > # -*- mode: cperl -*- > > while (<>) > { > m:^ \d+ p: > or die; > m:^ \d+ : > or die; > } > ---------------------------------------- I can reproduce this too. Best regards, Stefan Kangas