From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#54028: Window is not a valid window Date: Thu, 17 Feb 2022 19:34:35 +0200 Organization: LINKOV.NET Message-ID: <86zgmplblo.fsf@mail.linkov.net> References: <865ypey7bz.fsf@mail.linkov.net> <68b4d9be-5e50-a541-9031-787fa7ce3b7c@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39235"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 54028@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 17 19:05:37 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 1nKl9s-0009v5-Uq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Feb 2022 19:05:36 +0100 Original-Received: from localhost ([::1]:33720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nKl9r-0006mf-Hp for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Feb 2022 13:05:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKktt-0005Eb-79 for bug-gnu-emacs@gnu.org; Thu, 17 Feb 2022 12:49:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nKktr-0007WK-7r for bug-gnu-emacs@gnu.org; Thu, 17 Feb 2022 12:49:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nKktr-0007V8-84 for bug-gnu-emacs@gnu.org; Thu, 17 Feb 2022 12:49:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Feb 2022 17:49:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54028 X-GNU-PR-Package: emacs Original-Received: via spool by 54028-submit@debbugs.gnu.org id=B54028.164512011028749 (code B ref 54028); Thu, 17 Feb 2022 17:49:03 +0000 Original-Received: (at 54028) by debbugs.gnu.org; 17 Feb 2022 17:48:30 +0000 Original-Received: from localhost ([127.0.0.1]:52638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKktK-0007Tc-JA for submit@debbugs.gnu.org; Thu, 17 Feb 2022 12:48:30 -0500 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:41337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKktH-0007TA-5S for 54028@debbugs.gnu.org; Thu, 17 Feb 2022 12:48:29 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id D696AFF803; Thu, 17 Feb 2022 17:48:19 +0000 (UTC) In-Reply-To: <68b4d9be-5e50-a541-9031-787fa7ce3b7c@gmx.at> (martin rudalics's message of "Thu, 17 Feb 2022 11:06:13 +0100") 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:227109 Archived-At: >> I don't know if the author of >> https://www.reddit.com/r/emacs/comments/sthusa/window_xxx_is_not_a_valid_window_on_switching_tabs/ >> will report the bug here, > > Please encourage the author again to report such bugs here. Maybe they hesitate to use e-mail? >> but since it's easily reproducible, >> here is the short test case, just evaluate this: >> >> (window-state-put >> ... >> nil 'safe) >> >> It fails with: >> >> Debugger entered--Lisp error: (error "# is not a valid window") >> error("%s is not a valid window" #) >> window-normalize-window(#) >> window-deletable-p(#) >> window-state-put > > I think the attached fixes it, please check. Thanks, it doesn't fail anymore, but wasn't the problem somewhere in the invalid window state? > I have no idea whether the state is restored as intended, though. Is it possible to find what window was invalid in this window state?