From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E4=BC=8A=E8=97=A4=E6=B4=8B=E4=BB=8B?= Newsgroups: gmane.emacs.bugs Subject: bug#47440: 27.1; Quit/C-g does not interrupt Emacs promptly. Date: Sun, 28 Mar 2021 16:28:54 +0900 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005d926d05be93b89a" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39219"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47440@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 28 09:30:11 2021 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 1lQPsA-000A6a-M3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Mar 2021 09:30:10 +0200 Original-Received: from localhost ([::1]:56604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQPs9-0004jv-NI for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Mar 2021 03:30:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQPs2-0004jk-EB for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 03:30:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33806) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQPs2-0005Xd-6h for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 03:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQPs2-000077-30 for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 03:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E4=BC=8A=E8=97=A4=E6=B4=8B=E4=BB=8B?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Mar 2021 07:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47440 X-GNU-PR-Package: emacs Original-Received: via spool by 47440-submit@debbugs.gnu.org id=B47440.1616916554360 (code B ref 47440); Sun, 28 Mar 2021 07:30:02 +0000 Original-Received: (at 47440) by debbugs.gnu.org; 28 Mar 2021 07:29:14 +0000 Original-Received: from localhost ([127.0.0.1]:45352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQPrG-00005k-5m for submit@debbugs.gnu.org; Sun, 28 Mar 2021 03:29:14 -0400 Original-Received: from mail-wm1-f51.google.com ([209.85.128.51]:51108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQPrE-00005W-A8 for 47440@debbugs.gnu.org; Sun, 28 Mar 2021 03:29:13 -0400 Original-Received: by mail-wm1-f51.google.com with SMTP id g25so5043570wmh.0 for <47440@debbugs.gnu.org>; Sun, 28 Mar 2021 00:29:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PvV1LQZCTugeP+t5qlhhrhvcUjt37YYrdUTutu7JzLA=; b=gpZbpHhEvd4sLKZ7QzgIBBzBqQC1b9yMQHTGXkJjMsyHgltdNMIkoajql+HyMI6j18 ZTtLkayG7xC7ePhvAPAfIjFxCpC0jn6kgCLPkZSI9vTRFe3P4WbZTuUYiSNTNCuAflJN WikKlS+hNume/p9N1pc/oaa2vG3vSdzmXtGu2Y4TEh8BkkV+NAsH7+dC/C2qhi/jP7Mw RTdtmpfLAjUvupNR2mZmIa6Xqsogs4CxgXalh4iMad+KWfQhC604KI/D77jZaR1vZfTr H5qy8YlB6sij5GRP0MlvXvgVGszlWuZ3YJh61xV8oQPRy/fCZwfEIvGDTuuaS1RcG5d/ Cl9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PvV1LQZCTugeP+t5qlhhrhvcUjt37YYrdUTutu7JzLA=; b=XmA1XDjFy7W5BMAHV9heQDFdu51RyhPKV215Oh/5kyvy5VFDgz/2htLyaNZmr/6Vax jxcZz3HaxgIBEIpaQTqiWwuf2Ed6nx+FNE16XOAGIBQZi1Q9SM0WwcFYPihxOX4N3kdD zhM6FvBPaRebOj8RwNdy+WYrnng1nSTVmJzkY6UMod40RqDAjL7ZJfoKClrkQKM5cn0o LBjpQBfuQ4Eh79RRSyEbWEOw5N/NrJEFoE6DIOYgegQUTThckRYMMfVJ46LxH8nii7O1 vQQwxnROC8O6vRjOPmCGL+Wr90HCEoc3HV3ojzNkg9VTrhnfi02oqnE7eVDpKSNx8cYx nGZA== X-Gm-Message-State: AOAM5312J/8q8PRJpKX41Xc1BDGzTVV5uNxyKVHRXctaPTLRiNo7WohK 3zu5qoBENadW1mwhldgbindiB40Kv40OHiUCbFuAze8cUwXNkg== X-Google-Smtp-Source: ABdhPJwOquNixty3XgdxbN0YyIV2+ws2tzc5OFiZaJuyycWJxsbIdhwiwRc5h/fdlRmPlVEY2HWpeQFfsw6pm+xw0Rc= X-Received: by 2002:a7b:c5d2:: with SMTP id n18mr19681922wmk.53.1616916546162; Sun, 28 Mar 2021 00:29:06 -0700 (PDT) In-Reply-To: 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" Xref: news.gmane.io gmane.emacs.bugs:203150 Archived-At: --0000000000005d926d05be93b89a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Stefan, Thanks for your help! I tried as you say, and the result was that I got the message D-Bus error: "Emacs not compiled with dbus support" in the minibuffer. Actually, the freeze did not happen. I mean, the situation seemed to be the same as before entering `M-x eval-buffer RET`. Maybe the word "freeze" was inappropriate. What I wanted to convey is as follows. I did "I-search" (C-s) then "proof-assert-next-command-interactive" (C-c C-n), but the proof process got stuck. Here, "got stuck" means that Emacs did not go out of the proof process for several minutes. During that situation, I could move the cursor but I could not interrupt the proof process by Quit/C-g or tool-bar interrupt. The backtrace that I sent earlier was shown immediately after the proof process was over, say, several minutes after Emacs got stuck. I apologize if my explanation is confusing, since I am not so fluent in English. 2021=E5=B9=B43=E6=9C=8828=E6=97=A5(=E6=97=A5) 13:13 Stefan Monnier : > > *** This report is related to the Proof General Issues "Proof General > > freezes after I-search #565. *** > > > I use Proof General Version 4.5-git, Company-Coq. > > > The bug description is as follows. > > I did "I-search" (C-s) then "proof-assert-next-command-interactive" (C-= c > > C-n), but the proof process got stuck. > > So I pressed "Quit" (C-g), however the backtrace did not appear > > promptly. > > > For your information, the backtrace is the following. > [...] > > Could you try to put the following in say ~/tempfile.el > > (require 'dbus) > (dbus-call-method > :session "org.freedesktop.Notifications" > "/org/freedesktop/Notifications" "org.freedesktop.Notifications" > "Notify" :string "Emacs" :uint32 0 > :string "/Users/yosukeito/.emacs.d/elpa/company-coq-2020072..." > :string "Prover ready! (proof took 44.29s)" > :string "" '(:array) '((:dict-entry "urgency" (:variant :byte 1))) > :int32 -1) > > then do `emacs -Q ~/tempfile.el` and in that Emacs do > `M-x eval-buffer RET`. > > This should presumably suffer from the same freeze as you > saw with company-coq. Then hit C-g while it's frozen. > Does it still fail to interrupt Emacs immediately? > > > Stefan > > --=20 =E4=BC=8A=E8=97=A4=E6=B4=8B=E4=BB=8B 080-5057-6931 glacier345@gmail.com --0000000000005d926d05be93b89a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear Stefan,

Thanks for your help!
I tried as you say, and the result was th= at I got the message
D-Bus error: &quo= t;Emacs not compiled with dbus support"
in the minibuffe= r.
Actually, the freeze did not happen.
I mean, the sit= uation seemed to be the same as before entering `M-x eval-buffer RET`.

Maybe the word "freeze" was inappropriate.
What I wanted to convey is as follows.
I did = "I-search" (C-s) then "proof-assert-next-command-interactive= " (C-c C-n),
but the proof process got stuck.
Here= , "got stuck" means that Emacs did not go out of the proof proces= s for several minutes.
During that situation, I could move the cu= rsor but I could not interrupt the proof process by Quit/C-g or tool-bar in= terrupt.
The backtrace that I sent earlier was shown immediately = after the proof process was over,
say, several minutes after Emac= s got stuck.

I apologize if my explanation is= confusing, since I am not so fluent in English.


2021=E5=B9=B43=E6=9C=8828=E6=97=A5(=E6=97=A5) 13:13 Stefan Monnier <= monnier@iro.umontreal.ca>= ;:
> *** This= report is related to the Proof General Issues "Proof General
> freezes after I-search #565. ***

> I use Proof General Version 4.5-git, Company-Coq.

> The bug description is as follows.
> I did "I-search" (C-s) then "proof-assert-next-command-= interactive" (C-c
> C-n), but the proof process got stuck.
> So I pressed "Quit" (C-g), however the backtrace did not app= ear
> promptly.

> For your information, the backtrace is the following.
[...]

Could you try to put the following in say ~/tempfile.el

=C2=A0 =C2=A0 (require 'dbus)
=C2=A0 =C2=A0 (dbus-call-method
=C2=A0 =C2=A0 =C2=A0:session "org.freedesktop.Notifications"
=C2=A0 =C2=A0 =C2=A0"/org/freedesktop/Notifications" "org.fr= eedesktop.Notifications"
=C2=A0 =C2=A0 =C2=A0"Notify" :string "Emacs" :uint32 0<= br> =C2=A0 =C2=A0 =C2=A0:string "/Users/yosukeito/.emacs.d/elpa/company-co= q-2020072..."
=C2=A0 =C2=A0 =C2=A0:string "Prover ready! (proof took 44.29s)" =C2=A0 =C2=A0 =C2=A0:string "" '(:array) '((:dict-entry &= quot;urgency" (:variant :byte 1)))
=C2=A0 =C2=A0 =C2=A0:int32 -1)

then do `emacs -Q ~/tempfile.el` and in that Emacs do
`M-x eval-buffer RET`.

This should presumably suffer from the same freeze as you
saw with company-coq.=C2=A0 Then hit C-g while it's frozen.
Does it still fail to interrupt Emacs immediately?


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan



--
=E4=BC=8A=E8=97=A4=E6=B4=8B=E4= =BB=8B
080-5057-6931

=
--0000000000005d926d05be93b89a--