From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58164: 28.1; keybinding C-z to suspend-frame in fvwm windowmanager seems to get lost after first use. Date: Mon, 03 Oct 2022 19:47:18 +0300 Message-ID: <83y1twyhux.fsf@gnu.org> References: <492bc12c-43e1-3752-ffe6-09568aeb94db@planet.nl> <83bkqyf57s.fsf@gnu.org> <617ec97b-f7b3-216d-0592-c8c8968e41fe@planet.nl> <83tu4pe4cm.fsf@gnu.org> <40dcca87-666a-2c21-2e9d-5cf82fb4b8b3@planet.nl> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38537"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58164@debbugs.gnu.org To: Jos de Kloe Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 03 18:56:06 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 1ofOjd-0009o3-Rs for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Oct 2022 18:56:05 +0200 Original-Received: from localhost ([::1]:34062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofOjc-0004Cr-FM for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Oct 2022 12:56:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43782) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofObq-0007yP-Fc for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 12:48:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52532) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofObq-0003rS-4v for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 12:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofObp-0003LG-PK for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 12:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Oct 2022 16:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58164 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 58164-submit@debbugs.gnu.org id=B58164.166481565312702 (code B ref 58164); Mon, 03 Oct 2022 16:48:01 +0000 Original-Received: (at 58164) by debbugs.gnu.org; 3 Oct 2022 16:47:33 +0000 Original-Received: from localhost ([127.0.0.1]:51610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofObN-0003In-FB for submit@debbugs.gnu.org; Mon, 03 Oct 2022 12:47:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofObL-0003Ia-96 for 58164@debbugs.gnu.org; Mon, 03 Oct 2022 12:47:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59044) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofObF-0003pD-ML; Mon, 03 Oct 2022 12:47:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Hl8yo7sckPEbuWeReueUIH+r2HvgmG4G9lnwAZoFcUA=; b=LfId8hVFiRaX VvCoNE4+UH4VwevPBHNcbaS/5lQ+eUmnVuUFU5Oq/BlokXg3KtiL+5QUvlZFcDws1//QyPRmLqmFy GpwDtBiqRwB5H2iEF9G5H1o525kwdvE7y/WH1AG8dN1FhlSTb7hHCK/FrL3otv89cW5zvSmAwcWE+ PCdKHka7glQ+Z+b9Qmz69dqC8wo14/mjw9/qIPFGCxjsmh8fy58ePGWgXKo58hyFC5BWqc5BIgnxl HD/Km6JW0q6mWriQBt9OINrv50M7RQVv7jhEiKPoT0VdtqFQxISSEX+f5pgPw2pdOTfalDJtWS5Bv IRg8j5yIqt6jKfygB6KwSA==; Original-Received: from [87.69.77.57] (port=2372 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofObF-0003Sy-6B; Mon, 03 Oct 2022 12:47:25 -0400 In-Reply-To: <40dcca87-666a-2c21-2e9d-5cf82fb4b8b3@planet.nl> (message from Jos de Kloe on Mon, 3 Oct 2022 08:37:06 +0200) 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:244315 Archived-At: > Date: Mon, 3 Oct 2022 08:37:06 +0200 > Cc: 58164@debbugs.gnu.org > From: Jos de Kloe > > second time I hit C-z: > > Thread 1 "emacs" hit Breakpoint 1, x_iconify_frame (f=0xe46c70) at > xterm.c:11976 > 11976 { > (gdb) n > 11982 if (FRAME_DISPLAY_INFO (f)->highlight_frame == f) > (gdb) n > 11983 FRAME_DISPLAY_INFO (f)->highlight_frame = 0; > (gdb) n > 11985 if (FRAME_ICONIFIED_P (f)) > (gdb) n > Ffuncall (nargs=1, args=args@entry=0x7fffffffd258) at eval.c:3048 > 3048 lisp_eval_depth--; > (gdb) n > 3049 if (backtrace_debug_on_exit (specpdl + count)) > (gdb) n > 3051 specpdl_ptr--; > (gdb) n > 3052 return val; > (gdb) n > > I hope this helps to zoom in on the problem. It gives a hint. Can you type "bt" before you type "n" here: > 11985 if (FRAME_ICONIFIED_P (f)) > (gdb) n and show the resulting backtrace? Also, type "bt" _after_ you type "n" there and see this line: > Ffuncall (nargs=1, args=args@entry=0x7fffffffd258) at eval.c:3048 > 3048 lisp_eval_depth--; You see, FRAME_ICONIFIED_P doesn't call Ffuncall, and there's no such call anywhere in sight inside x_iconify_frame. So either the macro FRAME_ICONIFIED_P somehow signaled an error (which I don't think can happen), or something else kicked us out of the function when we tried to see if the frame is already iconified. The question is: what did kick us out and why?