From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#30393: 24.4; cperl-mode: indentation failure Date: Sun, 8 Apr 2018 10:52:57 +0000 Message-ID: <20180408105257.GA5350@ACM> References: <20180209175040.63536.qmail@mail.muc.de> <3331f80a-c5aa-5cb9-8088-0a88888bdaca@yandex.ru> <20180210112654.GA4537@ACM> <20180211103610.GA4515@ACM> <20180212183800.GA5601@ACM> <20180305084255.GA4786@ACM> <83zi3msdms.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1523184788 22236 195.159.176.226 (8 Apr 2018 10:53:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Apr 2018 10:53:08 +0000 (UTC) User-Agent: Mutt/1.9.4 (2018-02-28) Cc: dgutov@yandex.ru, 30393@debbugs.gnu.org, monnier@IRO.UMontreal.CA, npostavs@users.sourceforge.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 08 12:53:03 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 1f57wV-0005eJ-B5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Apr 2018 12:53:03 +0200 Original-Received: from localhost ([::1]:45494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f57ya-0000VA-PW for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Apr 2018 06:55:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f57yT-0000TL-8A for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 06:55:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f57yQ-0004aS-5O for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 06:55:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34040) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f57yQ-0004Zr-1Y for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 06:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f57yP-0004ni-Ku for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 06:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Apr 2018 10:55:01 +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.152318485318398 (code B ref 30393); Sun, 08 Apr 2018 10:55:01 +0000 Original-Received: (at 30393) by debbugs.gnu.org; 8 Apr 2018 10:54:13 +0000 Original-Received: from localhost ([127.0.0.1]:41937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f57xd-0004mg-4U for submit@debbugs.gnu.org; Sun, 08 Apr 2018 06:54:13 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:59060 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1f57xa-0004mW-HT for 30393@debbugs.gnu.org; Sun, 08 Apr 2018 06:54:11 -0400 Original-Received: (qmail 8798 invoked by uid 3782); 8 Apr 2018 10:54:08 -0000 Original-Received: from acm.muc.de (p5B146FB5.dip0.t-ipconnect.de [91.20.111.181]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 08 Apr 2018 12:54:07 +0200 Original-Received: (qmail 6688 invoked by uid 1000); 8 Apr 2018 10:52:57 -0000 Content-Disposition: inline In-Reply-To: <83zi3msdms.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:144991 Archived-At: Hello, Eli. On Mon, Mar 05, 2018 at 18:14:51 +0200, Eli Zaretskii wrote: > > Date: Mon, 5 Mar 2018 08:42:55 +0000 > > From: Alan Mackenzie > > Cc: 30393@debbugs.gnu.org, Dmitry Gutov , > > Noam Postavsky > > Existing C functions have been modified as follows: > > o - signal_after_change. > > * - Regardless of the settings of the change hooks, > > syntax-ppss-flush-cache will be called for an actual textual > > change. > > o - Fset_syntax_table. > > * - If the new table is literally different from the old, > > syntax-ppss-flush-cache will be called with an argument of -1. > > o - Fmodify_syntax_entry. > > * - If the new entry is literally different from the old one, > > syntax-ppss-flush-cache will be called with an argument of -1. > > o - init_syntax_once and syms_of_syntax. > > * - Administrative amendments. > > o - set_properties, add_properties, remove_properties. If a > > syntax-table property set or removed, whether directly or via a > > category property, potentially alters the parsing of literals, > > syntax-ppss-flush-cache will be called. > Any reason why you introduce 2 new primitives that no Lisp code uses? [ Already answered ]. > In any case, this needs documentation changes if and when it's agreed > upon. Can we start moving forward with this change, please? Just a quick summary of what it's about: syntax-ppss is now being used in back_comment. syntax-ppss's cache, at the moment, isn't being invalidated when the syntax table is swapped, or an entry in it is changed, or when a syntax-table text property is applied to a buffer element. The patch fixes this, as far as back_comment is concerned. > Thanks. -- Alan Mackenzie (Nuremberg, Germany).