From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rodrigo Morales Newsgroups: gmane.emacs.bugs Subject: bug#59408: Emacs infinitely load when opening .py file Date: Sun, 20 Nov 2022 11:49:15 -0500 Message-ID: References: <83leo56goz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000349ebe05ede9c471" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16749"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59408@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 20 17:53:18 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ownZG-0004CR-1x for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Nov 2022 17:53:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ownZ1-0001se-BL; Sun, 20 Nov 2022 11:53:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ownZ0-0001sP-DN for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2022 11:53:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ownZ0-0001BZ-3u for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2022 11:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ownYz-0001bk-W4 for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2022 11:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Rodrigo Morales Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Nov 2022 16:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59408 X-GNU-PR-Package: emacs Original-Received: via spool by 59408-submit@debbugs.gnu.org id=B59408.16689631666156 (code B ref 59408); Sun, 20 Nov 2022 16:53:01 +0000 Original-Received: (at 59408) by debbugs.gnu.org; 20 Nov 2022 16:52:46 +0000 Original-Received: from localhost ([127.0.0.1]:44392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ownYj-0001bE-PH for submit@debbugs.gnu.org; Sun, 20 Nov 2022 11:52:46 -0500 Original-Received: from mail-wr1-f44.google.com ([209.85.221.44]:37685) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ownYi-0001b1-Gn for 59408@debbugs.gnu.org; Sun, 20 Nov 2022 11:52:45 -0500 Original-Received: by mail-wr1-f44.google.com with SMTP id bs21so16639897wrb.4 for <59408@debbugs.gnu.org>; Sun, 20 Nov 2022 08:52:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=HvKIu0cRRt50f5ldEVklRm8K/u6wU4aKHSCqrdPGA94=; b=WR7BEFWLhDAH9XW3bU53kOFDcgQ2+ITdAOey93luSbVs8NmWXO40/fbQr49VnEEMAb CmzXrI5S4jVOJond7cWuqiWBMEWOZyYkslMBYdX0RdG5V3bJNFxL7sfUinUWREs28fze Mv4ZSvGirMwUpXHtOtAdkkfCOHTlbl7HZH4HTN0bzJiTz5xITYTxV9BqIN/SFnqk/4k4 RSneNZKZRbttI1yRWn/uiYhwuqZ5s03VloBDtOaZFgq6xj/MRvppJ2fFHSBwPJWXsv0+ 0ilrgHt5vvveYak2paMgeuta9150IZUK8X38aKTFEhvwpho/N7BZiOUNqbNNBad0jI8E t1Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HvKIu0cRRt50f5ldEVklRm8K/u6wU4aKHSCqrdPGA94=; b=VQC3RP1kEmuY8x86h8tKPbpV+liqmtmi/1iMWS44V76Sm79A8fWWs7OHbo0YfdOK9d Fip/GEVINnpSckqevQxGfzXcEAF0L9kgmiWexwfEvZEdxKo3WyUth8kjk3xiqCdNG+BT 1jP50oPSSUkRa3+KfHAtkKOeWWrVm02oGXX6/28Igay0s1zGDS1mQAa3guDUgza+s6gW XXnZj3sl7qYXlHMw9Coq2pJjGXfIRyPkHbjEeTuF96w97IHl5QIMSzy5AYiEIhOZPRS6 RmabDg897ROAuUzoN4pcKGpv8ih3lqZToKetdGNy/o4HXbBOHnO5grliMRrO6hjchyCB qbGQ== X-Gm-Message-State: ANoB5pl4X0KtyEjiOxyAyyGgTLHv6etsGlgadiL1bDww2IOr6n0hoy49 OtY0rZ+qd95kvbwdY81RGU6+dzowfvVp0JnD5PaS9cYpZ/0= X-Google-Smtp-Source: AA0mqf7njt6ot6OMA4Fa5cIpkjHc7KV9wOtlbfL9oRnehz4l6TZnNzUqLWOLvUfAOFEPmqxmNGJHl3es0fN+O/ZwJoo= X-Received: by 2002:adf:ff83:0:b0:236:6824:c227 with SMTP id j3-20020adfff83000000b002366824c227mr9241060wrr.510.1668963158497; Sun, 20 Nov 2022 08:52:38 -0800 (PST) In-Reply-To: <83leo56goz.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:248435 Archived-At: --000000000000349ebe05ede9c471 Content-Type: text/plain; charset="UTF-8" > Can you try the master branch of the Emacs Git repository, and see if > your actual Python file loads reasonably fast with Emacs 29? Done. I compiled Emacs from master branch, and I didn't find that issue when opening my actual Python file, so, as you said, it seems that the problem has been fixed in Emacs 29. For the record, I compiled Emacs from the commit shown below (last commit in master branch as of the time of this writing) ``` $ git log -n 1 commit 8874cd908c0ea0e2200f6f4f596bf645e76a0c0c (HEAD -> master, origin/master, origin/HEAD) Author: Po Lu Date: Sun Nov 20 21:01:10 2022 +0800 Coalesce duplicate scroll valuator handling code Also, write more commentary. * src/xterm.c (xi_populate_scroll_valuator): New function. Describe the meaning of each field in xi_scroll_valuator_t. (xi_populate_device_from_info, xi_handle_new_classes): Factor out duplicate code to that function. ``` On Sun, Nov 20, 2022 at 5:52 AM Eli Zaretskii wrote: > > From: Rodrigo Morales > > Date: Sun, 20 Nov 2022 05:35:34 -0500 > > > > I've attached a file named "main.py". I've tried opening it with > > "emacs -Q main.py" in a tty and Emacs infinitely loads. > > > > # Reproducing the bug > > > > 1. Open the file I've attached in this message with "emacs -Q main.py". > > > > At this point, Emacs will infinitely load (at least that's what I can > > infer since I waited 30 seconds and then decided to kill the process) > > Thanks. I can reproduce this in Emacs 28, but not in Emacs 29. So I think > this bug was already fixed for the upcoming Emacs 29 release. > > > It's worth mentioning that the attached file is a simplified version > > of the file that I was editing. When I first found this bug, I was > > editing a .py file with more lines and I found this infinite loading > > when I executed M-x occur and searched for any string. > > Can you try the master branch of the Emacs Git repository, and see if your > actual Python file loads reasonably fast with Emacs 29? > --000000000000349ebe05ede9c471 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Can you try the master branch of the Emacs Git reposi= tory, and see if
> your actual Python file loads reasonably fast with= Emacs 29?

Done. I compiled Emacs from master branch, and I didn'= ;t find that
issue when opening my actual Python file, so, as you said, = it seems
that the problem has been fixed in Emacs 29.

For the rec= ord, I compiled Emacs from the commit shown below (last
commit in master= branch as of the time of this writing)

```
$ git log -n 1
com= mit 8874cd908c0ea0e2200f6f4f596bf645e76a0c0c (HEAD -> master, origin/mas= ter, origin/HEAD)
Author: Po Lu <luangruo@yahoo.com>
Date: =C2=A0 Sun Nov 20 21:01:10 2022 +0800=

=C2=A0 =C2=A0 Coalesce duplicate scroll valuator handling code
<= br>=C2=A0 =C2=A0 Also, write more commentary.

=C2=A0 =C2=A0 * src/xt= erm.c (xi_populate_scroll_valuator): New function.
=C2=A0 =C2=A0 Describ= e the meaning of each field in xi_scroll_valuator_t.
=C2=A0 =C2=A0 (xi_p= opulate_device_from_info, xi_handle_new_classes): Factor
=C2=A0 =C2=A0 o= ut duplicate code to that function.
```

On Sun, Nov 20, 2022 at 5:52 AM E= li Zaretskii <eliz@gnu.org> wrote= :
> From: Rod= rigo Morales <moralesrodrigo1100@gmail.com>
> Date: Sun, 20 Nov 2022 05:35:34 -0500
>
> I've attached a file named "main.py". I've tried ope= ning it with
> "emacs -Q main.py" in a tty and Emacs infinitely loads.
>
> # Reproducing the bug
>
> 1. Open the file I've attached in this message with "emacs -Q= main.py".
>
> At this point, Emacs will infinitely load (at least that's what I = can
> infer since I waited 30 seconds and then decided to kill the process)<= br>
Thanks.=C2=A0 I can reproduce this in Emacs 28, but not in Emacs 29.=C2=A0 = So I think
this bug was already fixed for the upcoming Emacs 29 release.

> It's worth mentioning that the attached file is a simplified versi= on
> of the file that I was editing. When I first found this bug, I was
> editing a .py file with more lines and I found this infinite loading > when I executed M-x occur and searched for any string.

Can you try the master branch of the Emacs Git repository, and see if your<= br> actual Python file loads reasonably fast with Emacs 29?
--000000000000349ebe05ede9c471--