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#21657: 25.0.50; Python mode goes into an infinite loop Date: Tue, 13 Oct 2015 07:58:07 +0300 Message-ID: References: <87wpuv7kdt.fsf@secretsauce.net> <561C78BE.6070109@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1444712404 16869 80.91.229.3 (13 Oct 2015 05:00:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Oct 2015 05:00:04 +0000 (UTC) Cc: 21657@debbugs.gnu.org, Dima Kogan , Luke Powers To: Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 13 06:59:56 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 1Zlrgp-0001B6-Hm for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 06:59:55 +0200 Original-Received: from localhost ([::1]:60592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlrgp-0006ja-4d for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 00:59:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlrg1-0005vr-Rh for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2015 00:59:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zlrfy-00082T-MK for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2015 00:59:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlrfy-00082O-K6 for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2015 00:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zlrfy-0001Tz-63 for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2015 00:59:02 -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 04:59:02 +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.14447122905635 (code B ref 21657); Tue, 13 Oct 2015 04:59:02 +0000 Original-Received: (at 21657) by debbugs.gnu.org; 13 Oct 2015 04:58:10 +0000 Original-Received: from localhost ([127.0.0.1]:37668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zlrf8-0001Sp-8n for submit@debbugs.gnu.org; Tue, 13 Oct 2015 00:58:10 -0400 Original-Received: from mail-yk0-f172.google.com ([209.85.160.172]:33503) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zlrf5-0001Sg-Se for 21657@debbugs.gnu.org; Tue, 13 Oct 2015 00:58:08 -0400 Original-Received: by ykoo7 with SMTP id o7so6264328yko.0 for <21657@debbugs.gnu.org>; Mon, 12 Oct 2015 21:58:07 -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 :cc:content-type; bh=H1piL/SXHvP+mbeGMIwFcdTUOahW/vKlOSkam6VgVRI=; b=zoMzV04ORVMaUhaflPGIks4jAoNk/2mYL+zi9enOFb4pW3R/SacMsf7S/9Mgv9GTPc sPVHqJCJWJvcgJ/juCe06tMs9DoMeImFJZ6vNj9eG7TMow5w0uAr5eusyUf1+Im4T8w3 mLnCkZMpx11Jy/XNzgiBOKId3f3w9qc/rkWwcYCBwDZBX0y31GsrysipCjLoIlipWffG oCF/MHmI1ivpjZNA5g+w/6msILRVXR0JjmcHTysS517xuFcLdNPqg1IeZ4fEyIy0wGmb dJ75eF9UgPqAXqTTyCVaBPcD5fwokeP/iR7SpDA7CrW23YEdDkFyRHYiQAHrDAvPVKM5 N8dw== X-Received: by 10.129.124.8 with SMTP id x8mr23030370ywc.44.1444712287219; Mon, 12 Oct 2015 21:58:07 -0700 (PDT) Original-Received: by 10.13.212.197 with HTTP; Mon, 12 Oct 2015 21:58:07 -0700 (PDT) In-Reply-To: <561C78BE.6070109@dancol.org> 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:107559 Archived-At: There's a patch to fix this in #21671. On Tue, Oct 13, 2015 at 6:21 AM, Daniel Colascione wrote: > 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. >