From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jos de Kloe 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, 3 Oct 2022 19:39:20 +0200 Message-ID: <44de0da3-b662-c46c-08b8-605fd4ba83d8@planet.nl> 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> <83y1twyhux.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13404"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Cc: 58164@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 03 19:43:55 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 1ofPTu-0003MN-9W for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Oct 2022 19:43:54 +0200 Original-Received: from localhost ([::1]:32786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofPTr-000275-2C for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Oct 2022 13:43:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofPQA-0000tj-TZ for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 13:40:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52600) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofPQA-0003b6-Kf for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 13:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofPQA-0006pm-5X for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 13:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jos de Kloe Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Oct 2022 17:40:02 +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.166481877026226 (code B ref 58164); Mon, 03 Oct 2022 17:40:02 +0000 Original-Received: (at 58164) by debbugs.gnu.org; 3 Oct 2022 17:39:30 +0000 Original-Received: from localhost ([127.0.0.1]:51678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofPPd-0006ov-8e for submit@debbugs.gnu.org; Mon, 03 Oct 2022 13:39:29 -0400 Original-Received: from ewsoutbound.kpnmail.nl ([195.121.94.183]:31594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofPPa-0006oi-RK for 58164@debbugs.gnu.org; Mon, 03 Oct 2022 13:39:27 -0400 X-KPN-MessageId: 1dda7547-4342-11ed-888a-005056992ed3 Original-Received: from smtp.kpnmail.nl (unknown [10.31.155.5]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id 1dda7547-4342-11ed-888a-005056992ed3; Mon, 03 Oct 2022 19:37:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=planet.nl; s=planet01; h=content-type:from:to:subject:mime-version:date:message-id; bh=AdoqMC9GGr+Wy+jxQ8uYEjT3XGUlzPsir3aTpOyAyEo=; b=J8l9o0I1RpI4vhMEvfknCe1JWgm0OwrGY1BD+YikBpKgNjL7CXqr57naja4W1VK2J45oT0o3vs4ng IM4dC5UY1bSFCJVhR69fibk4OPMk1qINGCjw3uI3zpV2tC6OyhsrQSKeKckPGs9q2B3EGL63FSk4b7 wmkJFL5vJZ1sSe0Y= X-Originating-IP: 77.165.1.104 Original-Received: from [192.168.2.20] (77-165-1-104.fixed.kpn.net [77.165.1.104]) by smtp.kpnmail.nl (Halon) with ESMTP id 4feb3d53-4342-11ed-9b31-00505699b758; Mon, 03 Oct 2022 19:39:20 +0200 (CEST) Content-Language: en-US In-Reply-To: <83y1twyhux.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" Xref: news.gmane.io gmane.emacs.bugs:244323 Archived-At: On 10/3/22 18:47, Eli Zaretskii wrote: >> 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: before: Thread 1 "emacs" hit Breakpoint 1, x_iconify_frame (f=0xe293e0) 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) bt #0 x_iconify_frame (f=0xe293e0) at xterm.c:11983 #1 0x0000000000428191 in Ficonify_frame (frame=0x0) at frame.c:2811 #2 0x00000000005683b2 in funcall_subr (subr=0x989340 , numargs=numargs@entry=0, args=args@entry=0x7fffffffd260) at eval.c:3098 #3 0x0000000000566d80 in Ffuncall (nargs=1, args=args@entry=0x7fffffffd258) at eval.c:3023 #4 0x000000000059a50a in exec_byte_code (bytestr=0x7ffff1aea90c, vector=, maxdepth=, args_template=args_template@entry=0x2, nargs=nargs@entry=0, args=, args@entry=0x7fffffffd400) at bytecode.c:632 #5 0x0000000000569541 in fetch_and_exec_byte_code (args=0x7fffffffd400, nargs=0, syms_left=0x2, fun=0x7ffff1aea8a5) at /home/jos/temp_emacs/emacs-28.1/src/lisp.h:1853 #6 funcall_lambda (fun=0x7ffff1aea8a5, nargs=nargs@entry=0, arg_vector=arg_vector@entry=0x7fffffffd400) at eval.c:3228 #7 0x0000000000566d69 in Ffuncall (nargs=1, args=args@entry=0x7fffffffd3f8) at eval.c:3027 #8 0x000000000059a50a in exec_byte_code (bytestr=0x7ffff1aea94c, vector=, maxdepth=, args_template=args_template@entry=0x2, nargs=nargs@entry=0, args=, args@entry=0x7fffffffd7b0) at bytecode.c:632 #9 0x0000000000569541 in fetch_and_exec_byte_code (args=0x7fffffffd7b0, nargs=0, syms_left=0x2, fun=0x7ffff1aea7a5) at /home/jos/temp_emacs/emacs-28.1/src/lisp.h:1853 #10 funcall_lambda (fun=0x7ffff1aea7a5, nargs=nargs@entry=0, arg_vector=arg_vector@entry=0x7fffffffd7b0) at eval.c:3228 #11 0x0000000000566d69 in Ffuncall (nargs=nargs@entry=1, args=args@entry=0x7fffffffd7a8) at eval.c:3027 #12 0x0000000000563b8f in Ffuncall_interactively (nargs=1, args=0x7fffffffd7a8) #13 0x0000000000568388 in funcall_subr (subr=0x996740 , numargs=numargs@entry=1, args=args@entry=0x7fffffffd7a8) at eval.c:3078 #14 0x0000000000566d80 in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7fffffffd7a0) at eval.c:3023 #15 0x0000000000567098 in Fapply (nargs=nargs@entry=3, args=args@entry=0x7fffffffd7a0) at eval.c:2606 #16 0x00000000005640fa in Fcall_interactively (function=0x7ffff10e1250, record_flag=0x0, keys=0x7ffff1e7eae5) at callint.c:353 #17 0x00000000005683d8 in funcall_subr (subr=0x996700 , numargs=numargs@entry=3, args=args@entry=0x7fffffffd900) at eval.c:3103 #18 0x0000000000566d80 in Ffuncall (nargs=4, args=args@entry=0x7fffffffd8f8) at eval.c:3023 #19 0x000000000059a50a in exec_byte_code (bytestr=0x7ffff186486c, vector=, maxdepth=, args_template=args_template@entry=0x1006, nargs=nargs@entry=1, args=, args@entry=0x7fffffffdb48) at bytecode.c:632 #20 0x0000000000569541 in fetch_and_exec_byte_code (args=0x7fffffffdb48, nargs=1, syms_left=0x1006, fun=0x7ffff18644a5) at /home/jos/temp_emacs/emacs-28.1/src/lisp.h:1853 #21 funcall_lambda (fun=0x7ffff18644a5, nargs=nargs@entry=1, arg_vector=arg_vector@entry=0x7fffffffdb48) at eval.c:3228 #22 0x0000000000566d69 in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7fffffffdb40) at eval.c:3027 #23 0x0000000000566f19 in call1 (fn=fn@entry=0x4590, arg1=) at eval.c:2883 #24 0x0000000000502a36 in command_loop_1 () at keyboard.c:1505 #25 0x000000000056612d in internal_condition_case (bfun=bfun@entry=0x5023eb , handlers=handlers@entry=0x90, hfun=hfun@entry=0x4f7da1 ) at eval.c:1450 #26 0x00000000004f4841 in command_loop_2 (handlers=handlers@entry=0x90) at keyboard.c:1133 #27 0x00000000005660a4 in internal_catch (tag=tag@entry=0xe850, func=func@entry=0x4f482b , arg=arg@entry=0x90) at eval.c:1181 #28 0x00000000004f480d in command_loop () at keyboard.c:1111 #29 0x00000000004f7a2e in recursive_edit_1 () at keyboard.c:720 #30 0x00000000004f7cf9 in Frecursive_edit () at keyboard.c:803 #31 0x00000000004f3d72 in main (argc=3, argv=0x7fffffffdfd8) at emacs.c:2354 and after: (gdb) n 11985 if (FRAME_ICONIFIED_P (f)) (gdb) bt #0 x_iconify_frame (f=0xe293e0) at xterm.c:11985 #1 0x0000000000428191 in Ficonify_frame (frame=0x0) at frame.c:2811 #2 0x00000000005683b2 in funcall_subr (subr=0x989340 , numargs=numargs@entry=0, args=args@entry=0x7fffffffd260) at eval.c:3098 #3 0x0000000000566d80 in Ffuncall (nargs=1, args=args@entry=0x7fffffffd258) at eval.c:3023 #4 0x000000000059a50a in exec_byte_code (bytestr=0x7ffff1aea90c, vector=, maxdepth=, args_template=args_template@entry=0x2, nargs=nargs@entry=0, args=, args@entry=0x7fffffffd400) at bytecode.c:632 #5 0x0000000000569541 in fetch_and_exec_byte_code (args=0x7fffffffd400, nargs=0, syms_left=0x2, fun=0x7ffff1aea8a5) at /home/jos/temp_emacs/emacs-28.1/src/lisp.h:1853 #6 funcall_lambda (fun=0x7ffff1aea8a5, nargs=nargs@entry=0, arg_vector=arg_vector@entry=0x7fffffffd400) at eval.c:3228 #7 0x0000000000566d69 in Ffuncall (nargs=1, args=args@entry=0x7fffffffd3f8) at eval.c:3027 #8 0x000000000059a50a in exec_byte_code (bytestr=0x7ffff1aea94c, vector=, maxdepth=, args_template=args_template@entry=0x2, nargs=nargs@entry=0, args=, args@entry=0x7fffffffd7b0) at bytecode.c:632 #9 0x0000000000569541 in fetch_and_exec_byte_code (args=0x7fffffffd7b0, nargs=0, syms_left=0x2, fun=0x7ffff1aea7a5) at /home/jos/temp_emacs/emacs-28.1/src/lisp.h:1853 #10 funcall_lambda (fun=0x7ffff1aea7a5, nargs=nargs@entry=0, arg_vector=arg_vector@entry=0x7fffffffd7b0) at eval.c:3228 #11 0x0000000000566d69 in Ffuncall (nargs=nargs@entry=1, args=args@entry=0x7fffffffd7a8) at eval.c:3027 #12 0x0000000000563b8f in Ffuncall_interactively (nargs=1, args=0x7fffffffd7a8) at callint.c:260 #13 0x0000000000568388 in funcall_subr (subr=0x996740 , numargs=numargs@entry=1, args=args@entry=0x7fffffffd7a8) at eval.c:3078 #14 0x0000000000566d80 in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7fffffffd7a0) at eval.c:3023 #15 0x0000000000567098 in Fapply (nargs=nargs@entry=3, args=args@entry=0x7fffffffd7a0) at eval.c:2606 #16 0x00000000005640fa in Fcall_interactively (function=0x7ffff10e1250, record_flag=0x0, keys=0x7ffff1e7eae5) at callint.c:353 #17 0x00000000005683d8 in funcall_subr (subr=0x996700 , numargs=numargs@entry=3, args=args@entry=0x7fffffffd900) at eval.c:3103 #18 0x0000000000566d80 in Ffuncall (nargs=4, args=args@entry=0x7fffffffd8f8) at eval.c:3023 #19 0x000000000059a50a in exec_byte_code (bytestr=0x7ffff186486c, vector=, maxdepth=, args_template=args_template@entry=0x1006, nargs=nargs@entry=1, args=, args@entry=0x7fffffffdb48) at bytecode.c:632 #20 0x0000000000569541 in fetch_and_exec_byte_code (args=0x7fffffffdb48, nargs=1, syms_left=0x1006, fun=0x7ffff18644a5) at /home/jos/temp_emacs/emacs-28.1/src/lisp.h:1853 #21 funcall_lambda (fun=0x7ffff18644a5, nargs=nargs@entry=1, arg_vector=arg_vector@entry=0x7fffffffdb48) at eval.c:3228 #22 0x0000000000566d69 in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7fffffffdb40) at eval.c:3027 #23 0x0000000000566f19 in call1 (fn=fn@entry=0x4590, arg1=) at eval.c:2883 #24 0x0000000000502a36 in command_loop_1 () at keyboard.c:1505 #25 0x000000000056612d in internal_condition_case (bfun=bfun@entry=0x5023eb , handlers=handlers@entry=0x90, hfun=hfun@entry=0x4f7da1 ) at eval.c:1450 #26 0x00000000004f4841 in command_loop_2 (handlers=handlers@entry=0x90) at keyboard.c:1133 #27 0x00000000005660a4 in internal_catch (tag=tag@entry=0xe850, func=func@entry=0x4f482b , arg=arg@entry=0x90) at eval.c:1181 #28 0x00000000004f480d in command_loop () at keyboard.c:1111 #29 0x00000000004f7a2e in recursive_edit_1 () at keyboard.c:720 #30 0x00000000004f7cf9 in Frecursive_edit () at keyboard.c:803 #31 0x00000000004f3d72 in main (argc=3, argv=0x7fffffffdfd8) at emacs.c:2354 >> 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?