From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ivan Oreshnikov Newsgroups: gmane.emacs.bugs Subject: bug#39598: 26.3; Emacs is extremely unresponsive on a trivial python file Date: Sat, 15 Feb 2020 20:31:45 +0100 Message-ID: References: <831rqxp9z5.fsf@gnu.org> <83zhdlnuqe.fsf@gnu.org> <83v9o9nnxf.fsf@gnu.org> <83h7zsnum0.fsf@gnu.org> <83zhdjmz8y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000a8098059ea26078" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="31246"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39598@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 15 20:33:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j33Bf-0007zY-Sh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Feb 2020 20:33:11 +0100 Original-Received: from localhost ([::1]:53996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j33Be-0007xf-Hr for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Feb 2020 14:33:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37699) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j33BW-0007vi-V6 for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2020 14:33:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j33BV-0005BG-Vg for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2020 14:33:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58666) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j33BV-0005B2-T1 for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2020 14:33:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j33BV-00032a-OU for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2020 14:33:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Oreshnikov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Feb 2020 19:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39598 X-GNU-PR-Package: emacs Original-Received: via spool by 39598-submit@debbugs.gnu.org id=B39598.158179512511621 (code B ref 39598); Sat, 15 Feb 2020 19:33:01 +0000 Original-Received: (at 39598) by debbugs.gnu.org; 15 Feb 2020 19:32:05 +0000 Original-Received: from localhost ([127.0.0.1]:36406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j33Ab-00031N-3X for submit@debbugs.gnu.org; Sat, 15 Feb 2020 14:32:05 -0500 Original-Received: from mail-lj1-f181.google.com ([209.85.208.181]:35920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j33AY-00030s-S9 for 39598@debbugs.gnu.org; Sat, 15 Feb 2020 14:32:03 -0500 Original-Received: by mail-lj1-f181.google.com with SMTP id r19so14375252ljg.3 for <39598@debbugs.gnu.org>; Sat, 15 Feb 2020 11:32:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JNEPuvMFap9x+7JaQ9UxSkRZDkSJGkADyqbvtZfbMzM=; b=VZDlOLSwj/55PATHYmJg6q4uFhcEu2veCBm+vOo0cYqC6i3BShORl5APiOKq2qhl7x Ia7O/B7NEm2u8YaI6sutcWS8e29dJqZ1Gc7i91z02PQz7fMJiiBjZvTgB3voRUBELOCf 93qjCsI8s3/o4FOSlWMe6U9L1oUPUMn6kJ6si3278rdr2NstR4yXmAukgKeyOqI15tAO foa2WzjKYPrCaUeKes5UMuGXc5D8shBaBNS3wRneeTq9PTtMHuptg/uERuzL+aWV2VSo dJtIbKdmatl2xhcWNVUh0SDe28rJGyFly+W6bp6K6FOB9faQbQFlBmD63RRBn+ZA/EdX AKTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JNEPuvMFap9x+7JaQ9UxSkRZDkSJGkADyqbvtZfbMzM=; b=WzL2lvVYYRFZxHn4LuCl1QdeO2LrLeDDT+4c4eY2cwDaq2z5FZXhj+mAmMpzeXGmvs w7ajO/TlLwQWe47kVzHFCYrVkf0LlErw9bgihXLU1obTB9obabzB518ZM38GylKOFOux nBq8m4WlK7M3Th7MWRmmXONN4+yqf+iVbyE1Fbu9aKoj+WyasqWUJuIbnZReyZUlQgfm SwvaJRzIWW5u1rC7snxvBzDNTrEriOKFnPMb2J85HaBVT+g04Z+CZlymlmO5/21/CGJw 3T5OOaOA+J+jKNrSEsNt7wUqUw9pAc6BKI68Lh+Kqzi34MtLsamsznGrq1Spf4nTiak4 BEKw== X-Gm-Message-State: APjAAAVStwPUS16OTMwwzk4CPeo3FUMIrFNhiw0MJOFeFv7L3yPi0Q0u WoW73i8m8ZE639Zcn8NB7xQKUdTd0FEe/U7LN4c= X-Google-Smtp-Source: APXvYqy7hiM7fs63NZMyrmXKd/3oqc0wHfGZ/Ye95/uO4GE4Y1crRfTHxeFXdrMjywKb/TAEI2wU1dXAfTp4Aq/OHqI= X-Received: by 2002:a2e:580c:: with SMTP id m12mr5553125ljb.252.1581795116743; Sat, 15 Feb 2020 11:31:56 -0800 (PST) In-Reply-To: <83zhdjmz8y.fsf@gnu.org> 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:176095 Archived-At: --0000000000000a8098059ea26078 Content-Type: text/plain; charset="UTF-8" > Why do you need that intermediate buffer to be in Python mode? That's an intermediate state of the buffer where the rest of the migration code is. I was not trying to hit a corner case, this is just the way I happen to write code -- sometimes a paste text into the the buffer where the rest of the code is and then I edit it until it becomes a valid data structure. I am pretty sure I am not the only one who does this. > I guess because the code is tuned to support valid Python code, not something that shouldn't happen in Python sources? That example *is* a valid python code. And the behavior I see *is* a bug. And honestly, I don't think that this was a design choice along the lines "we're going to write an optimal parser for this subset of the language but we will occasionally hang up on this one". --0000000000000a8098059ea26078 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>=C2=A0Why do you need that intermedia= te buffer to be in Python mode?

That's an intermedia= te state of the buffer where the rest of the migration code is. I was not t= rying to hit a corner case, this is just the way I happen to write code -- = sometimes a paste text into the the buffer where the rest of the code is an= d then I edit it until it becomes a valid data structure. I am pretty sure = I am not the only one who does this.

> I guess = because the code is tuned to support valid Python code, not something that = shouldn't happen in Python sources?

That examp= le *is* a valid python code. And the behavior I see *is* a bug. And honestl= y, I don't think that this was a design choice along the lines "we= 're going to write an optimal parser for this subset of the language bu= t we will occasionally hang up on this one".

--0000000000000a8098059ea26078--