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#22983: [ Patch ] Re: bug#22983: syntax-ppss returns wrong result. Date: Tue, 19 Sep 2017 20:50:24 +0000 Message-ID: <20170919205024.GE19168@ACM> References: <83h8wlz1kf.fsf@gnu.org> <20170902174027.GB4267@ACM> <20170907204502.GC4488@ACM> <69e034d3-7a52-cc81-dc56-e5308ad5dce0@yandex.ru> <20170910113626.GB3588@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1505854647 8543 195.159.176.226 (19 Sep 2017 20:57:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Sep 2017 20:57:27 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: John Wiegley , Dmitry Gutov , 22983@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 19 22:57:21 2017 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 1duPa4-0001xX-QN for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 22:57:20 +0200 Original-Received: from localhost ([::1]:45410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duPaC-0000XL-4U for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 16:57:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duPZo-0000IX-SQ for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 16:57:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duPZm-0008PX-AR for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 16:57:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40020) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duPZm-0008Ov-5R for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 16:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1duPZl-0006HL-Vi for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 16:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Sep 2017 20:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22983 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22983-submit@debbugs.gnu.org id=B22983.150585462124128 (code B ref 22983); Tue, 19 Sep 2017 20:57:01 +0000 Original-Received: (at 22983) by debbugs.gnu.org; 19 Sep 2017 20:57:01 +0000 Original-Received: from localhost ([127.0.0.1]:48701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duPZk-0006H6-O7 for submit@debbugs.gnu.org; Tue, 19 Sep 2017 16:57:00 -0400 Original-Received: from ocolin.muc.de ([193.149.48.4]:49755 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1duPZj-0006Gx-Fk for 22983@debbugs.gnu.org; Tue, 19 Sep 2017 16:56:59 -0400 Original-Received: (qmail 59976 invoked by uid 3782); 19 Sep 2017 20:56:58 -0000 Original-Received: from acm.muc.de (p548C6659.dip0.t-ipconnect.de [84.140.102.89]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 19 Sep 2017 22:56:57 +0200 Original-Received: (qmail 21872 invoked by uid 1000); 19 Sep 2017 20:50:24 -0000 Content-Disposition: inline In-Reply-To: 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:137151 Archived-At: Hello, Philipp. On Sun, Sep 17, 2017 at 11:12:25 +0000, Philipp Stephani wrote: > Alan Mackenzie schrieb am So., 10. Sep. 2017 um 13:42 Uhr: > > > - Before this change is pushed to master, or shortly after, I'd like to > > > know that it actually fixed the problem Philipp experienced with > > > python-mode, so we can revert 4fbd330. If it was caused by e.g. > > > syntax-table changing, we've not improved much. > > Philipp, any chance of you trying out python mode with this patch but > > without 4fbd330? > Unfortunately the problem wasn't easily reproducible back then. The problem > would occur from time to time, but I never found a way to trigger it > reproducibly. Therefore the unit test I've added in the commit artificially > generates the symptom. The root cause is still unknown; while syntax-ppss > and narrowing might be a potential root cause (the fontification code uses > both), it might also be something else. OK, I understand. Cache effects are the very devil to debug. -- Alan Mackenzie (Nuremberg, Germany).