From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.bugs Subject: bug#64405: `toggle-side-windows' with 3 or more side windows leads to error; reproducer included Date: Sat, 1 Jul 2023 15:48:25 -0400 Message-ID: <4C5644CF-B41B-4AB7-AEF4-151133ADEE04@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24637"; mail-complaints-to="usenet@ciao.gmane.io" To: 64405@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 01 21:49:20 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 1qFgau-0006JG-F5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Jul 2023 21:49:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFgae-0000Fy-RZ; Sat, 01 Jul 2023 15:49: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 1qFgad-0000Fh-Ds for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 15:49:03 -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 1qFgad-00046q-5H for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 15:49:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFgac-0003uo-GK for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 15:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: JD Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Jul 2023 19:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64405 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168824091915011 (code B ref -1); Sat, 01 Jul 2023 19:49:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Jul 2023 19:48:39 +0000 Original-Received: from localhost ([127.0.0.1]:58733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFgaE-0003u1-NH for submit@debbugs.gnu.org; Sat, 01 Jul 2023 15:48:39 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:51568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFga8-0003tY-Em for submit@debbugs.gnu.org; Sat, 01 Jul 2023 15:48:36 -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 1qFga7-0008HT-Oc for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 15:48:32 -0400 Original-Received: from mail-il1-x133.google.com ([2607:f8b0:4864:20::133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qFga6-0003ws-3t for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 15:48:31 -0400 Original-Received: by mail-il1-x133.google.com with SMTP id e9e14a558f8ab-345f1e0abf9so6933635ab.3 for ; Sat, 01 Jul 2023 12:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688240908; x=1690832908; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=rNE1WFLvwUxzQdjl1C9gZ2kgGBF4KL16AciDVL5k5ow=; b=Iy02kxdhxaCcYncOhcDjWxDx25InOvsGGLWTAE3zfLhc2AS1rimvcOAU/GZ2VKAi3y N/0mWF7n/cP0gKrMVeZAaZcODV+TPbkyAbFFJ7Bj94giBrbXVcG4xgJU4/Cec4JOq37X n08euSZRw4ORr3YkvGMMNGwbH+LttSHTZUD+YdeLQsU00aDxMNinzaTN0cSVjpOa26M+ 7uiwxYYcv6CDDaESgrHg2QWAoSJVjwk1r9ffS2nONBhgML7tBhvu350hse+h5qGMWqb0 3gvc3JIbfOZkhsPhRb1DhAoiDvifCltoH1biZWem+40UZhzhgpMs5xRG9FZ+TLuDP6oU EBPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688240908; x=1690832908; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rNE1WFLvwUxzQdjl1C9gZ2kgGBF4KL16AciDVL5k5ow=; b=bsHTZE1mijMbLpliuQQWMatuMDMNZamtqw9A6ginMXZe0uBSpSQu/ZGKKKlISa9XrH vScmZUv6OZc+YlouFYH7rgnHbGvv/0PmaXiP+QhSqDPMuteBihSBEJbubBitMttG9yCW 6tPLTQ+x/iNnlAIxPBLOuYcrq9j4BFBzJoutzAy1W4Ol7VX2N3n8q9VuYXoLO7sxG4eD J7teUM2/A1Sza09OUNzUidahSMtwB17JjLLsMzDT6zVO7DJ4YcGkRP3cWvvHClk+d/Lb 6bduZRbKlDfVmULVcJZDaRrRsA4Dy2DcjelADCsXUXbx7yu+vws7SJpUOACdvtTEdw0I 778A== X-Gm-Message-State: ABy/qLZXiHilR/0aHA1y5e51dnQQx6wXhj0nDO8HjjTCiH/08rVo3ulF 1raUyxjYvF3lrgB7c//bYeqw76Rlj/g= X-Google-Smtp-Source: APBJJlHaM/1UPl5tVU4Nw9i6bRZ9e+lCYxtP70GZXCkyZli+M3Kb6RbhW5dKKzWg+LKx2eZnPhxZXw== X-Received: by 2002:a92:ce4a:0:b0:346:5e0:1d1d with SMTP id a10-20020a92ce4a000000b0034605e01d1dmr507158ilr.27.1688240907685; Sat, 01 Jul 2023 12:48:27 -0700 (PDT) Original-Received: from smtpclient.apple (cm-24-53-184-207.buckeyecom.net. [24.53.184.207]) by smtp.gmail.com with ESMTPSA id h16-20020a0566380f1000b0042b326ed1ebsm342353jas.48.2023.07.01.12.48.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Jul 2023 12:48:26 -0700 (PDT) X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::133; envelope-from=jdtsmith@gmail.com; helo=mail-il1-x133.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:264424 Archived-At: =46rom 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=E2=80=99. 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.=