GNU bug report logs - #61589
28.2; Triple-Quote causes emacs 28 to free in Python-mode

Previous Next

Package: emacs;

Reported by: Adam Connor <adamc55 <at> gmail.com>

Date: Sat, 18 Feb 2023 00:13:02 UTC

Severity: normal

Found in version 28.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ruijie Yu <ruijie <at> netyu.xyz>
To: Adam Connor <adamc55 <at> gmail.com>
Cc: 61589 <at> debbugs.gnu.org
Subject: bug#61589: 28.2; Triple-Quote causes emacs 28 to free in Python-mode
Date: Sat, 18 Feb 2023 11:18:51 +0800
Adam Connor <adamc55 <at> gmail.com> 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




This bug report was last modified 2 years and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.