From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30393: 24.4; cperl-mode: indentation failure Date: Sat, 10 Feb 2018 14:08:43 +0200 Message-ID: <8360752gj8.fsf@gnu.org> References: <20180208152552.GL13340@hodi> <20180209175040.63536.qmail@mail.muc.de> <3331f80a-c5aa-5cb9-8088-0a88888bdaca@yandex.ru> <20180210112654.GA4537@ACM> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1518264503 6398 195.159.176.226 (10 Feb 2018 12:08:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Feb 2018 12:08:23 +0000 (UTC) Cc: 30393@debbugs.gnu.org, dgutov@yandex.ru, monnier@IRO.UMontreal.CA, npostavs@users.sourceforge.net To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 10 13:08:18 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 1ekTww-0000nH-21 for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Feb 2018 13:08:10 +0100 Original-Received: from localhost ([::1]:33228 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekTyx-0002NV-J0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Feb 2018 07:10:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekTyn-0002Lj-2m for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 07:10:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekTyk-0007Rm-Bx for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 07:10:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56502) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ekTyk-0007Rb-7n for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 07:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ekTyk-00079u-2f for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2018 07:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Feb 2018 12:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30393 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30393-submit@debbugs.gnu.org id=B30393.151826455127454 (code B ref 30393); Sat, 10 Feb 2018 12:10:02 +0000 Original-Received: (at 30393) by debbugs.gnu.org; 10 Feb 2018 12:09:11 +0000 Original-Received: from localhost ([127.0.0.1]:36166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekTxv-00078k-Ce for submit@debbugs.gnu.org; Sat, 10 Feb 2018 07:09:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekTxt-00078W-St for 30393@debbugs.gnu.org; Sat, 10 Feb 2018 07:09:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekTxl-0006H3-No for 30393@debbugs.gnu.org; Sat, 10 Feb 2018 07:09:04 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekTxl-0006Gl-Ju; Sat, 10 Feb 2018 07:09:01 -0500 Original-Received: from [176.228.60.248] (port=3545 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ekTxk-00043T-MW; Sat, 10 Feb 2018 07:09:01 -0500 In-reply-to: <20180210112654.GA4537@ACM> (message from Alan Mackenzie on Sat, 10 Feb 2018 11:26:54 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:143090 Archived-At: > Date: Sat, 10 Feb 2018 11:26:54 +0000 > From: Alan Mackenzie > Cc: Noam Postavsky , > Stefan Monnier , 30393@debbugs.gnu.org > > +definition, or defun. Therefore, in these modes, don't put an opening Which "these modes" does this refer to? How will the reader know when to use this convention and when not? > + In earlier versions of Emacs (through version 26.n), Emacs exploited > +this convention to speed up many low-level operations, which would > +otherwise have to scan back to the beginning of the buffer. > +Unfortunately, this caused confusion when an opening delimiter > +occurred at column zero inside a comment. The resulting faulty > +analysis often caused wrong indentation or fontification. The > +convention could be overridden by setting the user option > +@code{open-paren-in-column-0-is-defun-start} to @code{nil}, but this > +slowed Emacs down, particularaly when editing large buffers. > + > + To eliminate these problems, the low level functionality which used > +to test for opening delimiters at column 0 no longer does so. Open > +delimiters may now be freely written at the left margin inside > +comments and strings without triggering these problems. This text is not needed. The original text, which you deleted, described how to avoid a real problem; if that problem no longer exists, we should just delete that text. If that problem does exist in some modes, we should leave that text as it was, with a better description of what modes are still subject to these problems. But describing something that is no longer done by Emacs is just waste of paper. Overall, I must say I'm confused regarding the purpose of this patch. What does it try to accomplish? Thanks.