unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#62325: Python quotes/apostrophes can cause hang
@ 2023-03-20 23:36 Gabriel Brown
  2023-03-21 10:05 ` Gregory Heytings
  2023-03-21 11:45 ` kobarity
  0 siblings, 2 replies; 5+ messages in thread
From: Gabriel Brown @ 2023-03-20 23:36 UTC (permalink / raw)
  To: 62325


[-- Attachment #1.1: Type: text/plain, Size: 1190 bytes --]

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@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 ---



[-- Attachment #1.2: Type: text/html, Size: 1789 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: mve.py --]
[-- Type: text/x-python, Size: 295 bytes --]


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-05  8:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-20 23:36 bug#62325: Python quotes/apostrophes can cause hang Gabriel Brown
2023-03-21 10:05 ` Gregory Heytings
2023-03-21 11:45 ` kobarity
2023-04-04 23:23   ` Gabriel Brown
2023-04-05  8:36     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).