From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Add function to rotate/transpose all windows Date: Sun, 17 Nov 2024 17:38:10 +0100 Message-ID: <8599bc67-b05d-4afc-8e6e-1ba64a30054e@gmx.at> References: <87setpdv21.fsf@gmail.com> <875xpfns32.fsf@gmail.com> <0a2f09a0-4115-4421-a391-30d27e7d0821@gmx.at> <87ses9k9wo.fsf@gmail.com> <877c9ersei.fsf@gmail.com> <51068b75-e12d-4161-9a63-8c280e8b2668@gmx.at> <8734k1gnt9.fsf@gmail.com> <8a2007d9-d501-404b-966d-57a7a51310ef@gmx.at> <87ses0r81d.fsf@gmail.com> <69658762-5fc7-4a9d-9262-528dfd9e93cd@gmx.at> <87wmhb2yew.fsf@gmail.com> <801bbd24-8f79-48a4-9615-f5ef21b2341e@gmx.at> <87ikstsu7f.fsf@gmail.com> <68dc98d6-42c0-431a-aefe-eecb02991764@gmx.at> <875xosy316.fsf@gmail.com> <87bjyfcncu.fsf@gmail.com> <87cyiuefxs.fsf@gmail.com> <878qthewbq.fsf@gmail.com> 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="1550"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Juri Linkov , Eli Zaretskii , emacs-devel@gnu.org To: Pranshu Sharma Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 17 17:38:57 2024 Return-path: Envelope-to: ged-emacs-devel@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 1tCiIb-0000Gq-DD for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Nov 2024 17:38:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCiHw-0005Pb-A3; Sun, 17 Nov 2024 11:38:16 -0500 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 1tCiHv-0005Ow-B3 for emacs-devel@gnu.org; Sun, 17 Nov 2024 11:38:15 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tCiHt-0006lQ-SL; Sun, 17 Nov 2024 11:38:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1731861491; x=1732466291; i=rudalics@gmx.at; bh=F+jo7TsWJXxk+4EaAU7FDBvJtigCXGd7Njrc+nMB+kw=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=E/Srg1IKtfyCjX4/6Jm8umDQQvNsY1Ul8XgEMmER1yHdariT246L+MF6QI75lMuD 8Vub1KObUSFmSCeHL/0RtL1IgXBf7WDZDvMUPzgBy+nsMQGSzrXyx7wGRYK68qjri ahdOa5wuaJoYDnW1w3e4ZGu2mV9zBUoBdJpZQu+05jL2RqYdQCTZXWWz10eXTzWaz 4Ilzj0ZPKJ2vfTdkaDizcN4HPVvSbfYjTMHgZwugUmF/E0JCoF6w71Ey0enA5jzAJ A8z65OtLoY8nODF/ZWLZw5SegAHnkRIp6Q2TgMGEBRDlkb389/J/QRt97zJo11Csn ytgDjCYOUbolqYxaew== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([46.125.249.73]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MEUzA-1swlq441gg-0017Qq; Sun, 17 Nov 2024 17:38:11 +0100 Content-Language: en-US In-Reply-To: <878qthewbq.fsf@gmail.com> X-Provags-ID: V03:K1:Eq3VWXav+ge8su9ZCwLD1HuxW7a2MI7e67y6Z2vV5+akvyb2ozI nbQ8qYmV23jLUCfuPByKqbSt7tblkEa9eUunGhDEE1oDabAcJP8VK0h2BkZJ0oo+aqu01GU YQ0pcMnxqCgZxlYz0W6kycMdvdeP5Gmh5AF2B5uOg0CkXyOP1Bk80YYoNxueVB+CNQ5gSl2 xENJfUkE9QWsLs1u6h5iw== UI-OutboundReport: notjunk:1;M01:P0:xZrNcar2ky0=;ouYnuczYBc5LDP9DKB4QDjzEPJ4 d2PkwNHq5DBgfxdBFbfatWjIL2N/HPij8i8xIVyZa/SMfw5aF7YN5ZzynYHB9dWwbrjo5g46+ DXJ5cyax2dPcaaJvt5q6Ek+qI3Ub/pqjQmdwG+eqlzP8MdSts0ddPbmjgDv+1qz7Y6VBe3oT9 toZ1n3iAceXH4Av9Eco2Pd6yGfO+IW6oNkG7l9ZXivG50wOvbe19Lk/PRawTiqaE6oT6/4uUH 1LxGx+C6j8152sOT6iF/F5CthKlMDgExBftHq6591gcKVMEpqaRvh1EpVBiqSI9u687jqfwL0 UgBoxbeVkzT8vvRDBc4GSVIv6Wk2PfENDBYdXRg3Ooiwd4y/vynq4RhBM/P9UoMsvfMhGk5m9 0EqrKfR2ImpLNS/b+DxgeXafpaFwyB4uDn+HopbgDzh2Q6qlOPL4suVURSPB9ua3En40lIK0E vrQ3F7cy/pLzkAKwu6ayoa1Ht/hvp/N4OtHSLpyPOgioph+jYOQLP4nnFPmluAP53YF/wld78 NBMcRGtNhezkS3H0fZcWlip99hFBoFxZxp8BGbANj/kFSTnZR2rckw8xGSXA0KPdFQB/jACTy OL3p5EiFnH6wNi/6fTjpkOOCKP4lLhCiZnPZfgmOqbnIfx83ZOdQLOP1bQ6UPuLqJ0jGikCpv n8nNppBNlikLA8MPtkEIw7FA1IPYr/q6l2LX9v/SMwFU5JnD7osDHvdABzRi7G80oBpj8IjkG oJdAoOMSMbtD0OlSrlwa5IVcY+aTb7FU34YRm8k9vhw18mygsjGQK4dZTW5asUKEJU9yXWdR Received-SPF: pass client-ip=212.227.15.18; envelope-from=rudalics@gmx.at; helo=mout.gmx.net X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SBL_CSS=3.335, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325491 Archived-At: > Ok, I applied this and it works fine now. Look in the file > attached. I'm not convinced yet. Here (split-window cwin split-size split-type t (progn (while (listp (caaddr win)) (setq win (caddr win))) (caaddr win))) you never pass a parent window to 'split-window' but I think you should. With my standard setup I get ((# . #) (# . #) (# . #) (# . #) (# . #)) before 'rotate-windows-clockwise' and ((# . #) (# . #) (# . #) (# . #) (# . #)) afterwards: Both parent windows 12 and 16 have been lost and new parent windows 20 and 21 have been created. martin