From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: immerrr again Newsgroups: gmane.emacs.bugs Subject: bug#21671: [PATCH] fix python.el hanging up during fontification #21657 Date: Tue, 13 Oct 2015 10:37:38 +0300 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1444721914 31378 80.91.229.3 (13 Oct 2015 07:38:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Oct 2015 07:38:34 +0000 (UTC) To: 21671@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 13 09:38:26 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZluAD-0006Wt-Ch for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 09:38:25 +0200 Original-Received: from localhost ([::1]:32811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZluAC-0007bq-P1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 03:38:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlu9t-0007JW-Gf for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2015 03:38:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zlu9q-00060A-9b for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2015 03:38:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlu9q-000601-5O for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2015 03:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zlu9p-0000OO-TP for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2015 03:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: immerrr again Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Oct 2015 07:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21671 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 21671-submit@debbugs.gnu.org id=B21671.14447218631443 (code B ref 21671); Tue, 13 Oct 2015 07:38:01 +0000 Original-Received: (at 21671) by debbugs.gnu.org; 13 Oct 2015 07:37:43 +0000 Original-Received: from localhost ([127.0.0.1]:37721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zlu9W-0000N8-HI for submit@debbugs.gnu.org; Tue, 13 Oct 2015 03:37:42 -0400 Original-Received: from mail-yk0-f178.google.com ([209.85.160.178]:33787) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zlu9T-0000Mr-KT for 21671@debbugs.gnu.org; Tue, 13 Oct 2015 03:37:40 -0400 Original-Received: by ykoo7 with SMTP id o7so8712853yko.0 for <21671@debbugs.gnu.org>; Tue, 13 Oct 2015 00:37:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FmAGld64ZR6Kx4NUq5Hjpm+wTJ1wwvtoXjncgxktPyQ=; b=JdzCW8OIEcSOYmja4TT7cWtqFMJXiwNjIZJ2Z3yPNilG2KGsJ4o2P9SoMAOdOTQPfy IuB+BO/o3LUe0tZqBMaTGewV/lK2ydOkxsWI4wUkT9VKpEHBDBoYdunIHXmtRWaGZf6j G6h8Ke7DJHHwahlTVdP+CTWSRftNaC0UQq3K7CK/Y0EyEZJz1hv0mP+7yJWPw1uIl4Si Q4waP4zn6/27lZMw9Ji3YdkWLXtxzZsXFEW+PfNplajI4ITeN0a7a/8Qdfk8bk4aKzx0 fNVoXsXNxmKVsuOf6yRH1Nl/LgmakMwKgRsSOq2PTbUjjeuAf3niclzWshsEyj/UpTKB mAyQ== X-Received: by 10.129.40.79 with SMTP id o76mr24901985ywo.251.1444721859038; Tue, 13 Oct 2015 00:37:39 -0700 (PDT) Original-Received: by 10.13.212.197 with HTTP; Tue, 13 Oct 2015 00:37:38 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107564 Archived-At: FTR, 0001-Fix-syntax-propertize-done.. patch seems unnecessary as commit [1] does its job. 1. https://github.com/emacs-mirror/emacs/commit/0360b7f2c4f0358106e229de4dfe91a67445a50c On Mon, Oct 12, 2015 at 2:48 PM, immerrr again wrote: > Two patches are included. > > One fixes the fact that for some reason syntax-propertize--done has > ceased to be buffer-local after commit [1] and for some reason commit > [2] did not help. I did it the way other buffer-local variables are > initialized and it worked. The change fixes #21657 that was failing > because syntax-propertize--done was inherited from scratch buffer and > docstring boundaries were not propertized as a result. > > The other infinite loop I found accidentally when adding a whitespace > before module docstring. I have fixed one corner-case of it, but in > other circumstances I'd argue that whatever smart extensions > python-mode adds to forward-sexp, those extensions should never move > point less than the normal forward-sexp should. > > Cheers, > immerrr > > 1. https://github.com/emacs-mirror/emacs/commit/3928ef2dd5b8febf3b1d9c1bfb22af3698d16bea > > 2. https://github.com/emacs-mirror/emacs/commit/0360b7f2c4f0358106e229de4dfe91a67445a50c