all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: James Mazer <mazerj2006@gmail.com>
To: Ruijie Yu <ruijie@netyu.xyz>
Cc: Eli Zaretskii <eliz@gnu.org>, 63363@debbugs.gnu.org
Subject: bug#63363: 28.2; emacs freezes opening python file w/ unclosed quotes
Date: Wed, 10 May 2023 17:11:44 -0600	[thread overview]
Message-ID: <CAE6Qr7cyd-mizMyTRMivB_M=b+1CzXnPzCViEY2fUwJZJeJs4w@mail.gmail.com> (raw)
In-Reply-To: <CAE6Qr7eQ2SiY74bSvgcwZMrNeQRqM_9nqHUH-juin6NMMywTZA@mail.gmail.com>

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

Disregard that -- until 29 is out, I just added
>
> (defun python-nav-end-of-statement--bug-override (orig-fn &optional noend)
>   (forward-line 1))
> (advice-add 'python-nav-end-of-statement :around
>    #'python-nav-end-of-statement--bug-override)

to my init.el (from https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58780).
Seems to do the trick for now -- no more lost buffers :-)

On Wed, May 10, 2023 at 5:01 PM James Mazer <mazerj2006@gmail.com> wrote:

> Just confirmed that with an emacs 29.0.90 snap (beta) I'm not seeing the
> lock up. So it appears to be fixed downstream, but would be nice to be able
> to fix in 28 until 29 is actually released :-)
>
>
> On Tue, May 9, 2023 at 9:23 AM James Mazer <mazerj2006@gmail.com> wrote:
>
>> Yes, seems to be the same issue. I just tried replicating his trigger and
>> locked up an emacs window.. here's the backtrace after sigusr2:
>>
>>> Debugger entered--entering a function:
>>> * #f(compiled-function () #<bytecode 0xb893e2c8c539dfa>)()
>>>   syntax-ppss()
>>>   python-nav-end-of-statement()
>>>   python-nav-end-of-block()
>>>   python-info-statement-ends-block-p()
>>>   python-nav--forward-sexp(-1 nil nil)
>>>   python-nav-forward-sexp(-1 nil nil)
>>>   python-nav-backward-sexp()
>>>   python-info-docstring-p((0 nil 390 34 nil nil 0 nil 427 nil nil))
>>>   python-font-lock-syntactic-face-function((0 nil 390 34 nil nil 0 nil
>>> 427 nil nil))
>>>   font-lock-fontify-syntactically-region(180 1700 nil)
>>>   font-lock-default-fontify-region(184 1684 nil)
>>>   font-lock-fontify-region(184 1684)
>>>   #f(compiled-function (fun) #<bytecode
>>> 0x19ba0a4f10e54dbd>)(font-lock-fontify-region)
>>>   jit-lock--run-functions(184 1684)
>>>   jit-lock-fontify-now(184 1684)
>>>   jit-lock-function(184)
>>>   redisplay_internal\ \(C\ function\)()
>>
>>
>> I'll see if I can spin up a version of 29. Been a while since I compiled
>> emacs from scratch... I'm actually surprised that there aren't packages for
>> 28 and 29 more readily available for ubuntu. Not sure what's up with that.
>>
>>
>> On Mon, May 8, 2023 at 9:09 PM Ruijie Yu <ruijie@netyu.xyz> wrote:
>>
>>>
>>> James Mazer <mazerj2006@gmail.com> writes:
>>>
>>> > Don't have time right now to do a custom build, but as sanity check, I
>>> just quickly pulled the 28.2 gnu.org.emacs flatpak and tried that and I get
>>> > exactly the same issue, so it doesn't appear to be specific to the
>>> snap build. I can't find a 29 snap or flatpak to test, though.
>>>
>>> There is also another bug report (closed as fixed on 29), #62794, that I
>>> think is the same as this report and #62325.  In particular, see this
>>> message within that bug report:
>>>
>>> msgid:ZDdE/j6dDbhCw1QF@nicku.org
>>> https://mail.gnu.org/archive/html/bug-gnu-emacs/2023-04/msg00798.html
>>>
>>> What Nick described in #62794 sounds exactly the same as your issue and
>>> Eli's observation: that only _some type(s) of_ python files trigger the
>>> error.  I, as well as Eli, were able to reproduce the issue of #62794
>>> via using the file Nick attached in that message.
>>>
>>> James, can you confirm that Nick's issue on #62794 is exactly the same
>>> as yours in this bug report, and that you can also reproduce the issue
>>> using Nick's attachment from that message?
>>>
>>> And also, if you want to get a version of 29 to test, you can either get
>>> the pretest or clone the code and run "make".  The resultant emacs
>>> binary is located at "src/emacs".  Let me know if this is unclear.
>>>
>>> --
>>> Best,
>>>
>>>
>>> RY
>>>
>>
>>
>> --
>> James Mazer
>> mazerj@gmail.com
>>
>>
>
> --
> James Mazer
> mazerj@gmail.com
>
>

-- 
James Mazer
mazerj@gmail.com

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

  reply	other threads:[~2023-05-10 23:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-08  1:02 bug#63363: 28.2; emacs freezes opening python file w/ unclosed quotes James Mazer
2023-05-08  7:47 ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-08 11:40   ` Eli Zaretskii
2023-05-08 16:28     ` James Mazer
2023-05-08 16:41       ` Eli Zaretskii
2023-05-08 17:09         ` James Mazer
2023-05-09  1:54           ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-09 15:23             ` James Mazer
2023-05-10 23:01               ` James Mazer
2023-05-10 23:11                 ` James Mazer [this message]
2023-05-11  5:44                 ` 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='CAE6Qr7cyd-mizMyTRMivB_M=b+1CzXnPzCViEY2fUwJZJeJs4w@mail.gmail.com' \
    --to=mazerj2006@gmail.com \
    --cc=63363@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=ruijie@netyu.xyz \
    /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.