From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21629: 25.0.50; python.el freezes up around docstrings. Date: Tue, 06 Oct 2015 17:54:00 +0300 Message-ID: <83fv1oxd2v.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1444143416 28941 80.91.229.3 (6 Oct 2015 14:56:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Oct 2015 14:56:56 +0000 (UTC) Cc: 21629@debbugs.gnu.org To: Jacob MacDonald Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 06 16:56:46 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 1ZjTfQ-0001FQ-Q6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Oct 2015 16:56:37 +0200 Original-Received: from localhost ([::1]:52162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjTfP-0003F8-IQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Oct 2015 10:56:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjTdz-0001ry-Jk for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 10:55:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjTdv-0001un-Fb for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 10:55:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjTdv-0001uC-DI for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 10:55:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZjTdu-0006oC-Tw for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 10:55:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2015 14:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21629-submit@debbugs.gnu.org id=B21629.144414324326095 (code B ref 21629); Tue, 06 Oct 2015 14:55:02 +0000 Original-Received: (at 21629) by debbugs.gnu.org; 6 Oct 2015 14:54:03 +0000 Original-Received: from localhost ([127.0.0.1]:57213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjTcw-0006mo-OO for submit@debbugs.gnu.org; Tue, 06 Oct 2015 10:54:03 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:34361) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjTcu-0006mM-EC for 21629@debbugs.gnu.org; Tue, 06 Oct 2015 10:54:01 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NVS00D00ZS9QS00@mtaout27.012.net.il> for 21629@debbugs.gnu.org; Tue, 06 Oct 2015 17:50:09 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVS00B3PZVLMG30@mtaout27.012.net.il>; Tue, 06 Oct 2015 17:50:09 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il 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:107374 Archived-At: > From: Jacob MacDonald > Date: Tue, 06 Oct 2015 04:48:50 +0000 > > Begin from a fresh 'emacs -Q'. Create a Python file. Insert a long > docstring which contains a header line and then a long body which > includes a few line breaks and spaces in it. The docstring should look > something like this: > > """test header > > lorem ipsum... more text more text more text > x10 lines > ... > ... > """ > > Save the file and close emacs. Start a fresh 'emacs -Q'. Open dired in > the directory which contains the Python file you created. Navigate to > the file and try to open in from dired. Emacs will freeze indefinitely > and eat all the system resources it can. You can break the cycle by > pressing C-q many times, but the freeze happens again on every single > redisplay. If you wait awhile before cancelling the redisplay, you may > see that fontification has frozen somewhere in the middle of the docstring. It infloops in python-nav-end-of-statement. The loop there ends up one position before EOB, then jumps back to string-start, and so on and so forth, ad nauseam. I have no idea what causes this, but I hope Python-mode experts and perhaps Stefan (due to syntax stuff) will be able to figure this out.