From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: paulusm Newsgroups: gmane.emacs.bugs Subject: bug#30393: 24.4; cperl-mode: indentation failure Date: Fri, 9 Feb 2018 02:25:52 +1100 Message-ID: <20180208152552.GL13340@hodi> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1518106842 29242 195.159.176.226 (8 Feb 2018 16:20:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Feb 2018 16:20:42 +0000 (UTC) User-Agent: Mutt/1.5.23 (2014-03-12) To: 30393@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 08 17:20:38 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejovk-00060T-Jk for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Feb 2018 17:20:12 +0100 Original-Received: from localhost ([::1]:50165 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejoxm-0005R5-1j for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Feb 2018 11:22:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejovg-0003wG-Eo for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 11:20:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejovb-0002G8-Ga for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 11:20:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54563) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejovb-0002G2-CA for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 11:20:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ejovb-00069u-7X for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 11:20:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: paulusm Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Feb 2018 16:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30393 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.151810676123606 (code B ref -1); Thu, 08 Feb 2018 16:20:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Feb 2018 16:19:21 +0000 Original-Received: from localhost ([127.0.0.1]:34225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejouv-00068g-4h for submit@debbugs.gnu.org; Thu, 08 Feb 2018 11:19:21 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejo5X-0004v3-Fg for submit@debbugs.gnu.org; Thu, 08 Feb 2018 10:26:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejo5R-0000Il-H0 for submit@debbugs.gnu.org; Thu, 08 Feb 2018 10:26:10 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:55357) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ejo5R-0000Ic-DF for submit@debbugs.gnu.org; Thu, 08 Feb 2018 10:26:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejo5Q-0005b1-8k for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 10:26:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejo5K-0000Fv-5Z for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 10:26:08 -0500 Original-Received: from homie.mail.dreamhost.com ([208.97.132.208]:49097 helo=homiemail-a60.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ejo5J-0000F0-SO for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 10:26:02 -0500 Original-Received: from homiemail-a60.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a60.g.dreamhost.com (Postfix) with ESMTP id 788742820A2; Thu, 8 Feb 2018 07:25:57 -0800 (PST) Original-Received: from hodi (124-170-193-247.dyn.iinet.net.au [124.170.193.247]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: paul@lookmumnohands.net) by homiemail-a60.g.dreamhost.com (Postfix) with ESMTPSA id 72C42282096; Thu, 8 Feb 2018 07:25:56 -0800 (PST) Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 08 Feb 2018 11:19:19 -0500 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: 208.118.235.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:143027 Archived-At: ### How to foul up indentation in cperl-mode (cperl-indent-command) # Here is some badly-indented Perl: my $sql = "insert into jobs (id, priority) values (1, 2);"; my $sth = $dbh->prepare($sql) or die "bother"; # try indenting each line above (individually) by pressing TAB # (cperl-indent-command). # # No problem - everything behaving normally. # Now try this: my $sql = "insert into jobs (id, priority) values (1, 2);"; my $sth = $dbh->prepare($sql) or die "bother"; # Note how "my $sth..." doesn't indent properly? On my system, it # stays where it is, where I expect it to re-indent to column 0. # Now anything following refuses to indent: print "Help!"; # Comment out the second code block, and the "Help!" line indents # properly again. # It's worth noting at this point that the /contents/ of the string # seem to trigger the issue. If the "$sql = ..." lines were changed # to: # # first case: # $sql = "select * from jobs;"; # # second case: # $sql = "select * # from jobs;"; # # The issue does not appear. In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2017-09-12 on hullmann, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.10 (jessie) -- Paul.