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#64405: `toggle-side-windows' with 3 or more side windows leads to error; reproducer included Date: Thu, 06 Jul 2023 10:24:05 +0300 Message-ID: <83mt09iju2.fsf@gnu.org> References: <4C5644CF-B41B-4AB7-AEF4-151133ADEE04@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12594"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64405@debbugs.gnu.org To: JD Smith , martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 06 09:25:12 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 1qHJMW-00034I-8c for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Jul 2023 09:25:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHJMO-0002Bs-DH; Thu, 06 Jul 2023 03:25:04 -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 1qHJMM-0002BT-CF for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2023 03:25:02 -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 1qHJMM-0001n9-3b for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2023 03:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qHJML-00045z-V1 for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2023 03:25: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: Thu, 06 Jul 2023 07:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64405 X-GNU-PR-Package: emacs Original-Received: via spool by 64405-submit@debbugs.gnu.org id=B64405.168862825215674 (code B ref 64405); Thu, 06 Jul 2023 07:25:01 +0000 Original-Received: (at 64405) by debbugs.gnu.org; 6 Jul 2023 07:24:12 +0000 Original-Received: from localhost ([127.0.0.1]:39452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHJLY-00044k-D1 for submit@debbugs.gnu.org; Thu, 06 Jul 2023 03:24:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHJLX-00044V-48 for 64405@debbugs.gnu.org; Thu, 06 Jul 2023 03:24:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHJLR-0001dn-E1; Thu, 06 Jul 2023 03:24:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=gDhc3wx5R3wKL8QvccsgdiGLUHpKAIGr4DxAZaGBNwA=; b=UjhXoHNO6rmpU4zw/3Kq /FDejulFGVQavjiCJxmZsQVsAguBdMu5x6J6vz0+NiLqcRcvoBG++4pHCvEQPL1u9/zRap1wpTyzr 7nMs+hrEI+swnXK2cnAcyWHkugPR0qDp+ggxpt6nJJCrMhCLNfNUcYRX2JPHYP0eo/G/LfvMzLDKy +VjPdV1I8K2Q6q4IFYTB0CYopBOXngjp70rRvLbU3CvkHwp1wFikhI687mmQaBi4+hw6drHyrOdAu MeNAeNGlxiciHyXrvloqvJ1vlNPkT4HYYvPAacQ+UBcxRdoGGG2vC8H/msHLbngSDN0tAE6Izo6OH qykhFhYvpWhwjw==; Original-Received: from [87.69.77.57] (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 1qHJLQ-000114-OT; Thu, 06 Jul 2023 03:24:05 -0400 In-Reply-To: <4C5644CF-B41B-4AB7-AEF4-151133ADEE04@gmail.com> (message from JD Smith on Sat, 1 Jul 2023 15:48:25 -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:264659 Archived-At: > From: JD Smith > Date: Sat, 1 Jul 2023 15:48:25 -0400 > > > From a fresh Emacs 28 emacs -Q: > > (progn > (display-buffer-in-side-window (get-buffer-create "AA") '((side . right) (slot . -1))) > (display-buffer-in-side-window (get-buffer-create "BB") '((side . right) (slot . 0))) > (display-buffer-in-side-window (get-buffer-create "CC") '((side . right) (slot . 1))) > (window-toggle-side-windows) > (window-toggle-side-windows)) > > Leads to the error `Specified root is not an ancestor of specified window’. This arises as: > > Debugger entered--Lisp error: (error "Specified root is not an ancestor of specified win...") > delete-other-windows-internal(nil #) > window-state-put((((min-height . 4) (min-width . 10) (min-height-ignore . 2) (min-width-ignore . 7) (min-height-safe . 1) (min-width-safe . 2) (min-pixel-height . 64) (min-pixel-width . 70) (min-pixel-height-ignore . 32) (min-pixel-width-ignore . 49) (min-pixel-height-safe . 16) (min-pixel-width-safe . 14)) leaf (pixel-width . 591) (pixel-height . 560) (total-width . 84) (total-height . 35) (normal-height . 1.0) (normal-width . 1.0) (parameters (clone-of . #)) (buffer # (selected . t) (hscroll . 0) (fringes 8 8 nil nil) (margins nil) (scroll-bars nil 3 t nil 0 t nil) (vscroll . 0) (dedicated) (point . #) (start . #))) #) > window-toggle-side-windows() > (progn (display-buffer-in-side-window (get-buffer-create "AA") '((side . right) (slot . -1))) (display-buffer-in-side-window (get-buffer-create "BB") '((side . right) (slot . 0))) (display-buffer-in-side-window (get-buffer-create "CC") '((side . right) (slot . 1))) (window-toggle-side-windows) (window-toggle-side-windows)) > (progn (progn (display-buffer-in-side-window (get-buffer-create "AA") '((side . right) (slot . -1))) (display-buffer-in-side-window (get-buffer-create "BB") '((side . right) (slot . 0))) (display-buffer-in-side-window (get-buffer-create "CC") '((side . right) (slot . 1))) (window-toggle-side-windows) (window-toggle-side-windows))) > elisp--eval-last-sexp(nil) > eval-last-sexp(nil) > funcall-interactively(eval-last-sexp nil) > command-execute(eval-last-sexp) > > Strangely no error is seen with 1 or 2 side windows. Martin, any ideas or comments? This still happens in Emacs 29 and Emacs 30. Thanks.