From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#21657: 25.0.50; Python mode goes into an infinite loop Date: Mon, 12 Oct 2015 20:21:34 -0700 Message-ID: <561C78BE.6070109@dancol.org> References: <87wpuv7kdt.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="T4l10MujhpiLQj0LKbbtSwrqWRL5rnrWm" X-Trace: ger.gmane.org 1444706544 25106 80.91.229.3 (13 Oct 2015 03:22:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Oct 2015 03:22:24 +0000 (UTC) Cc: 21657@debbugs.gnu.org To: Luke Powers , Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 13 05:22:13 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 1ZlqAE-0000zH-Pu for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 05:22:11 +0200 Original-Received: from localhost ([::1]:60122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlqAE-0001lG-3Y for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Oct 2015 23:22:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlqA9-0001kJ-Fp for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2015 23:22:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlqA6-0004PR-Ch for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2015 23:22:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlqA6-0004PI-6h for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2015 23:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZlqA5-0007NA-Tl for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2015 23:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Oct 2015 03:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21657 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 21657-submit@debbugs.gnu.org id=B21657.144470650628316 (code B ref 21657); Tue, 13 Oct 2015 03:22:01 +0000 Original-Received: (at 21657) by debbugs.gnu.org; 13 Oct 2015 03:21:46 +0000 Original-Received: from localhost ([127.0.0.1]:37647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zlq9p-0007Md-8M for submit@debbugs.gnu.org; Mon, 12 Oct 2015 23:21:45 -0400 Original-Received: from dancol.org ([96.126.100.184]:60867) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zlq9m-0007MT-O2 for 21657@debbugs.gnu.org; Mon, 12 Oct 2015 23:21:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject; bh=qK08NAybP+WK3k5BQH9gLtuYDsz7sdwc213iGYGK2qM=; b=lZglLaMSw/oz6XJxOfO7o7rdiXSAbJNbh+mgQgC7jJZjBzpJ4Tey3OeGGdRtvvO2X4YGiMspDddYSPNhMhoaPWpDmEIb1zR4Ui9Ed9noco+CyWQQjPvZpyEE1GXE/zIwz1P3DkUX7lDo9LZgeNpzPmf6qvdyS9ciKxBkFw8oH1EGtOZPTKOKWnsKVpb3xDUZLXgJDZ92SH7PQWXyE3jGlaWXX8pk8opPajnmfyuCZhgyArxmWTrMywspWRasrtIVG3AZIL+bY5TefxcB9fi9geKXmHyum4sMR5L542VwRvS/a26DP6IQwmJY62oitUZiUaaHDToThH1c+ETGjsOWTg==; Original-Received: from [199.201.64.3] (helo=[172.26.0.138]) by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1Zlq9k-0003S8-PO; Mon, 12 Oct 2015 20:21:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 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:107558 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --T4l10MujhpiLQj0LKbbtSwrqWRL5rnrWm Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/09/2015 04:16 PM, Luke Powers wrote: > There are a couple issues out there with similar reports (21646 21629 > 21628). >=20 > Revert to 818f06eaa72d8e4f9ba314c1c2855613bf89f396 if you want to work > around the issue. I think I know what's going on. Stefan's change moved some of the syntax-propertize stuff from Lisp into C. Now Emacs core has a variable called syntax-propertize--done, known in C as syntax_propertize__done. We make it buffer-local using Fmake_variable_buffer_local, but that makes the variable buffer-local when it's _set_. Until it's set, the variable retains its global value, which lives in the C variable syntax_propertize__done. So if we syntax-propertize 1000 characters of buffer A, then find-file in buffer B, we think we've syntax-propertized up to position 1000 (the value of syntax_propertize__done) until we set it to something else. In the case of Python, if we have a triple quote in the first 1000 characters, we infloop. --T4l10MujhpiLQj0LKbbtSwrqWRL5rnrWm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJWHHi+AAoJEN4WImmbpWBlQeMP/jwNp/QkXJJQBKNM0yg4A8jF t4+eVsktJ2fdyKNnJNRasODWK0lzydireuGIRryoJWRIMRAtUHO6RwVWa+EJOA3G IdJuBUgE1NpukwrM9etO9plkI4sdIQM045X69kWUgk0/FX0t5X2RGqteKxglIxgd mY8jX/kXLwFvtv77jNx5uH9Z4+aJ//jTb5xdx2ofJY4MDFp7eAIEy7JJTaZdsTTK Wq6gHS+YhG6i09wvgW27qoawVG/xIkT8RKKH2hePQoKLaIe4EAJKjxGYzMIXRc0w ZPPEyCunxjKhHdxTFiYK2ZQyAzJ97g54trw53dJwE79+L48klmTvOjolqByR9hdy xvAznmP4+UkzCc93H7WRqrYmb7rJSRfttTwgumYQj9pXa0A0+as4WX5J/Hz3aFMg zwrWK8IsJYNGe1K1zjRnnioxV2KjPbR2uEp0m6NyqkPgUsVWpv5Nz6Nj+YqHL1Bj 9/ISYKcTnG2SEvslGTGMJlgpUZcGJCmdrMYNm4nJxKZ4Kv2CcDLhJZtGKF6Det5H NKvxm6LK6+DNo+VvwBVCgfldWw0cXcTExi0TUe5VbYuro/5MkmpO9pLsTVtkvLcs 7Fd+DFErorErx30V+Lx8fntzWLzp+94Yij1W9iwHC/1CrR2u3oN12fdg8yEfZQki SkawvpQC0o/s/CCK9Y5H =G0/X -----END PGP SIGNATURE----- --T4l10MujhpiLQj0LKbbtSwrqWRL5rnrWm--