GNU bug report logs - #62325
Python quotes/apostrophes can cause hang

Previous Next

Package: emacs;

Reported by: Gabriel Brown <gabriel.h.brown <at> gmail.com>

Date: Tue, 21 Mar 2023 08:30:02 UTC

Severity: normal

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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Gabriel Brown <gabriel.h.brown <at> gmail.com>
Subject: bug#62325: closed (Re: bug#62325: Python quotes/apostrophes can
 cause hang)
Date: Wed, 05 Apr 2023 08:37:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#62325: Python quotes/apostrophes can cause hang

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 62325 <at> debbugs.gnu.org.

-- 
62325: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62325
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Gabriel Brown <gabriel.h.brown <at> gmail.com>
Cc: kobarity <at> gmail.com, 62325-done <at> debbugs.gnu.org
Subject: Re: bug#62325: Python quotes/apostrophes can cause hang
Date: Wed, 05 Apr 2023 11:36:31 +0300
> Cc: 62325 <at> debbugs.gnu.org
> Date: Tue, 04 Apr 2023 18:23:29 -0500
> From: Gabriel Brown <gabriel.h.brown <at> gmail.com>
> 
> Apologies for the delay. I finally came into some time to switch Emacs versions, and using the makepkg
> branch for Emacs 29 I no longer see the issue I reported.

Thanks, I'm therefore closing this bug.

[Message part 3 (message/rfc822, inline)]
From: Gabriel Brown <gabriel.h.brown <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Python quotes/apostrophes can cause hang
Date: Mon, 20 Mar 2023 18:36:16 -0500
[Message part 4 (text/plain, inline)]
Hi, all. First bug report for me. I've searched to see if there are 
other reports of my issue, but turned up empty handed.

--- Summary ---
It seems when there are three or more python docstrings (each bordered 
by two lines of triple quotes """) and each containing an apostrophe, 
then the next time a quote docstring is to be inserted Emacs hangs.

I have included a minimum viable example file that reproduces this 
behavior on my machine. Simply replace the angle bracket line 
containing the instructions with triple quotes, and Emacs should hang. 
(In case file attachments don't work I have included the text of the 
file at the end of the email.)

--- Additional information ---
Emacs version: 28.2 (via pacman package manager)
machine: EndeavourOS Linux x86_64 (kernel: 6.2.2-arch1-1)
reply email: gabriel.h.brown <at> gmail.com

--- start of example file ---
def f_0():
   # inline comment
   < try replacing with triple quotes >
   return 4

def f_1():
   """
   ghbrown's first comment
   """
   return 1

def f_2():
   """
   ghbrown's second comment
   """
   return 1

def f_3():
   """
   ghbrown's third comment
   """
   return 1
--- end of example file ---


[Message part 5 (text/html, inline)]
[mve.py (text/x-python, attachment)]

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

Previous Next


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