all messages for Emacs-related lists mirrored at yhetil.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

* bug#62325: Python quotes/apostrophes can cause hang
  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
  1 sibling, 0 replies; 5+ messages in thread
From: Gregory Heytings @ 2023-03-21 10:05 UTC (permalink / raw)
  To: Gabriel Brown; +Cc: 62325


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

Thanks for your bug report.  I can reproduce that bug with Emacs 27 and 
28, but not with Emacs 29.






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

* bug#62325: Python quotes/apostrophes can cause hang
  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
  1 sibling, 1 reply; 5+ messages in thread
From: kobarity @ 2023-03-21 11:45 UTC (permalink / raw)
  To: Gabriel Brown; +Cc: 62325


Gabriel Brown wrote:
> 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.

Hi Gabriel,

From my testing of your example, the problem appears to be fixed with
the #58780 fix.  Can you test with the latest Emacs in emacs-29 branch
or master branch?  Or you can try the patch attached in #58780.





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

* bug#62325: Python quotes/apostrophes can cause hang
  2023-03-21 11:45 ` kobarity
@ 2023-04-04 23:23   ` Gabriel Brown
  2023-04-05  8:36     ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Gabriel Brown @ 2023-04-04 23:23 UTC (permalink / raw)
  To: kobarity; +Cc: 62325

[-- Attachment #1: Type: text/plain, Size: 747 bytes --]

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 again!


On Tue, Mar 21 2023 at 08:45:28 PM +09:00:00, kobarity 
<kobarity@gmail.com> wrote:
> 
> Gabriel Brown wrote:
>>  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.
> 
> Hi Gabriel,
> 
> From my testing of your example, the problem appears to be fixed with
> the #58780 fix.  Can you test with the latest Emacs in emacs-29 branch
> or master branch?  Or you can try the patch attached in #58780.


[-- Attachment #2: Type: text/html, Size: 975 bytes --]

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

* bug#62325: Python quotes/apostrophes can cause hang
  2023-04-04 23:23   ` Gabriel Brown
@ 2023-04-05  8:36     ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2023-04-05  8:36 UTC (permalink / raw)
  To: Gabriel Brown; +Cc: kobarity, 62325-done

> Cc: 62325@debbugs.gnu.org
> Date: Tue, 04 Apr 2023 18:23:29 -0500
> From: Gabriel Brown <gabriel.h.brown@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.





^ 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 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.