all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gabriel Brown <gabriel.h.brown@gmail.com>
To: 62325@debbugs.gnu.org
Subject: bug#62325: Python quotes/apostrophes can cause hang
Date: Mon, 20 Mar 2023 18:36:16 -0500	[thread overview]
Message-ID: <GWEURR.ETU1AJFZH53F1@gmail.com> (raw)


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

             reply	other threads:[~2023-03-20 23:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-20 23:36 Gabriel Brown [this message]
2023-03-21 10:05 ` bug#62325: Python quotes/apostrophes can cause hang Gregory Heytings
2023-03-21 11:45 ` kobarity
2023-04-04 23:23   ` Gabriel Brown
2023-04-05  8:36     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=GWEURR.ETU1AJFZH53F1@gmail.com \
    --to=gabriel.h.brown@gmail.com \
    --cc=62325@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.