From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Toon Claes Newsgroups: gmane.emacs.bugs Subject: bug#62355: 30.0.50; C-g doesn't always quit minibuffer on first press Date: Fri, 24 Mar 2023 08:56:39 +0100 Message-ID: <87edpe7eiw.fsf@to1.studio> References: <831qlh79at.fsf@gnu.org> <87zg83e032.fsf@melete.silentflame.com> <83sfdv44df.fsf@gnu.org> <83r0teekzm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40935"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joaotavora@gmail.com, 62355@debbugs.gnu.org, Sean Whitton To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 24 17:03:01 2023 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 1pfjsa-000AFW-DJ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Mar 2023 17:03:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfggL-0004WV-6m; Fri, 24 Mar 2023 08:38:10 -0400 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 1pfggF-0004VU-A4 for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2023 08:38:05 -0400 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 1pfggE-0000er-VI for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2023 08:38:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pfggE-0008Iw-SR for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2023 08:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Toon Claes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Mar 2023 12:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62355 X-GNU-PR-Package: emacs Original-Received: via spool by 62355-submit@debbugs.gnu.org id=B62355.167966146131864 (code B ref 62355); Fri, 24 Mar 2023 12:38:02 +0000 Original-Received: (at 62355) by debbugs.gnu.org; 24 Mar 2023 12:37:41 +0000 Original-Received: from localhost ([127.0.0.1]:39987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfgfq-0008Hn-Jf for submit@debbugs.gnu.org; Fri, 24 Mar 2023 08:37:41 -0400 Original-Received: from mx-out2.startmail.com ([145.131.90.155]:33893) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfcYQ-0006hI-3T for 62355@debbugs.gnu.org; Fri, 24 Mar 2023 04:13:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=startmail.com; s=2020-07; t=1679645610; bh=prFUVvd71N91rvyEnBu3hAam62i6ur+1PEN9zODGEAE=; h=References:From:To:Subject:Date:In-reply-to:Message-ID: Mime-Version:Content-Type:From:Subject:To:Date:Sender:Content-Type: Content-Transfer-Encoding:Content-Disposition:Mime-Version: Reply-To:In-Reply-To:References:Message-Id:Autocrypt; b=NsHj7D+tmoJCbv/RwNt0GU7eYWxZuzee62Bhbr6IjRublMqxttQNX3sdJETm1n1Rc 5sO9Rc2VUXHH0TEoHEIPZaL8g+UF5MtmPQI2VAsusiB6iSYQtZeMx34xBCOB07XlCH FYEsq1pvu+r6TwcqEJABPDwYM4xsZ77JZtORq/7IH5Tuglk6iHJjWR8OCShWa8u24x KHgxZczLclpwKJjuQlAEluOHw93+OHDYYtA2ov4W2soirFJ6irwXLfGRiY+wAk8MQK Y1we94WL5W/FBoEflzyozjRrgwmRhcbNMntMtBXsufKzQC8A+5EmS/4105VwOzK7RV KnTi0HBRH0Q5w== In-reply-to: <83r0teekzm.fsf@gnu.org> X-Mailman-Approved-At: Fri, 24 Mar 2023 08:37:37 -0400 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:258510 Archived-At: Eli Zaretskii writes: > We may be talking about two different issues. The original report > doesn't mention Icomplete (AFAIU) I'm not using icomplete. I can reproduce with "emacs -Q", so it shouldn't be related to any (non-default) package. > , it mentions the fact that C-g, > instead of exiting the minibuffer, just displays "[Quit]" (note the > brackets). That is the expected and intentional behavior in Emacs 28 > and later when Emacs needs to display an echo-area message and the > minibuffer is active. Let me try to understand correctly what you mean by "intentional behavior". When I type "emacs -Q" , press "M-x" the minibuffer opens, I do nothing else, I just type "C-g" to abort. Then I see "Quit" (no brackets) in the echo area and the cursor is sent back to the original buffer. This works as intended IMHO. Now, the issue I'm having, I can repeat pressing alternating "M-x" "C-g" a few times, and at some point the minibuffer shows "[Quit]" (with brackets) and the minibuffer remains active. From this point my Emacs is "tainted" and *every* action in the minibuffer requires "C-g" twice to exit. In my opinion this is not intended behavior. So some of my theories: * Some internal state gets stuck. If you can give me some guidance on where in the source code this behavior to display "[Quit]" comes from, I'm happy to attach gdb to dig a bit deeper. * It feels like it's timing related. It starts happening from a random number of actions. * I cannot reproduce in "emacs -Q -nw", I'm not sure what to conclude from that. I can reproduce on two computers I have, one is running Fedora, other is running Arch. On both I'm using Sway on Wayland and Emacs with PGTK. I know it's a weird issue, and I'm willing to help debug. I can make a screen recording if you want to see it in action? -- Toon