From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ruijie Yu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61589: 28.2; Triple-Quote causes emacs 28 to free in Python-mode Date: Sat, 18 Feb 2023 11:18:51 +0800 Message-ID: References: Reply-To: Ruijie Yu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10156"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.13; emacs 29.0.60 Cc: 61589@debbugs.gnu.org To: Adam Connor Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 18 04:22:31 2023 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 1pTDnz-0002V9-3h for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Feb 2023 04:22:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTDnX-0004RX-Tv; Fri, 17 Feb 2023 22:22:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pTDnW-0004RE-UH for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 22:22:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pTDnW-0008Pu-L6 for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 22:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pTDnW-0003oW-Ba for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 22:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ruijie Yu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Feb 2023 03:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61589 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: 61589@debbugs.gnu.org, bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167669049514621 (code B ref -1); Sat, 18 Feb 2023 03:22:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Feb 2023 03:21:35 +0000 Original-Received: from localhost ([127.0.0.1]:42096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTDn4-0003nl-Qd for submit@debbugs.gnu.org; Fri, 17 Feb 2023 22:21:35 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:34952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTDn3-0003ne-Sj for submit@debbugs.gnu.org; Fri, 17 Feb 2023 22:21:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pTDn3-0004KL-N1 for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 22:21:33 -0500 Original-Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pTDn2-0008MD-0Z for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 22:21:33 -0500 Original-Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id 5c1f8c56 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 18 Feb 2023 03:21:24 +0000 (UTC) In-reply-to: Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@netyu.xyz; helo=mail.netyu.xyz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255919 Archived-At: Adam Connor writes: > emacs -Q recipe: Start with a file as follows (not including the > dashed lines): > -------------------- > > import os > > > > def some_outer(): > """ > Returns an inner function > """ > print('bah') > > def inner(*args, **kwargs): > """ > blah blah, 'True' is parsed as the boolean True, '[1,2,3]' as the array > [1,2,3], etc. -- but in cases where that doesn't work, yadda yadda > """ > return 55 > > return inner > -------------------- > > Open the file. Above 'some_outer', try to add > > class Foo: > """ > > For me, emacs will consistently freeze after I press enter on the triple > quote. The docstrings seem to play a role (if I delete them, it stops > freezing), but I don't know exactly what is going on there. > > And by 'freeze', I mean exactly that -- emacs stops responding and > cannot be quit, although I can force-quit it. > > In GNU Emacs 28.2 (build 1, aarch64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build 21A559)) > of 2022-09-12 built on armbob.lan > Windowing system distributor 'Apple', version 10.3.2113 > System Description: macOS 12.6.3 Cannot reproduce in 28.1 (5a223c7f2ef4c31abbd46367b6ea83cd19d30aa7) on GNU/Linux. Compiling 28.2 tag, 29 branch and master branch ATM. -- Best, RY