From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pranshu Sharma Newsgroups: gmane.emacs.devel Subject: Re: Add function to rotate/transpose all windows Date: Mon, 18 Nov 2024 10:37:30 +1000 Message-ID: <87frnp2x85.fsf@gmail.com> References: <87setpdv21.fsf@gmail.com> <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> <8599bc67-b05d-4afc-8e6e-1ba64a30054e@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="27573"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Juri Linkov , Eli Zaretskii , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 18 04:21:46 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 1tCsKg-00072U-4J for ged-emacs-devel@m.gmane-mx.org; Mon, 18 Nov 2024 04:21:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCsJp-0005Aa-49; Sun, 17 Nov 2024 22:20:53 -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 1tCplX-0005Qp-Df for emacs-devel@gnu.org; Sun, 17 Nov 2024 19:37:19 -0500 Original-Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tCplV-0008OO-UF; Sun, 17 Nov 2024 19:37:19 -0500 Original-Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-720d5ada03cso2278401b3a.1; Sun, 17 Nov 2024 16:37:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731890235; x=1732495035; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ln+tcVI97YGqEQuZdiM/TCRy3qsKS+1HyvH4gDAoDwA=; b=eal9uzY0zhFkv5ebeR8HfhCOKEpgwgM1wH8Ks0mVVeGNLTwBqOeUynNjNgDcujxCoi zYPoBxoHQLz7OJ81vqIx40Djaf1d1SVnmiWKD1FAsXXJSfKbB/l+seiaCe2wBORhEm7B u1c2UwpcU9gdXG+KQtqJf1jfCdK50JBzChlsPWRTxOw7moRv1fYIjIR326laevWasAyz nBLu/3nZRC/qc7ZFav2gBtfdHtokO7QRT4Wo56TTXDnKw/bm9BTOTjOsGZZ481RYm1Y5 ZhB9gryVjOUCEpe5+leKNzwZE3cAtX8os48V5XegNElFcM9Q/BB1OyEV9Ru7p13AQJqP wLKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731890235; x=1732495035; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ln+tcVI97YGqEQuZdiM/TCRy3qsKS+1HyvH4gDAoDwA=; b=jKW9cKvLMoQpis+2skc6mdM90kOQexwd31twyyVWvbwdD5SkhlK+88WWdBwytq6hry tJ9duNInldjGwr/6HZxpuh3wW2nGUIEcDmlbNq49EiocNI9fHA1Rov/y/aJZ0C03l1gu pVKkyKYztRg+jLNOws8kx30zCdhj4iHOpVIu/q8mvBSi7ebB+sJ44s9JmK7G6IEfhvh0 FSMg7gONiQbJ9AkKJSTiaIP/kXCM7fhxArJRCNTdS8OfJAkkoejfWGU8fSyo8GThTboq hxV2IT/sejTCLDkJYZx9Y/j8a040sEQfRcsrk4VVtK7zumQhekVxQt7le6esN5Lrq99g Z+Qw== X-Forwarded-Encrypted: i=1; AJvYcCVHLPsaqnsFYVRsMRW2lxTKyni26zmLERVcNp1ungJaJwX0dllh++zsSP/LvS7JS796hPtc@gnu.org, AJvYcCXxJ638zYxkGNgVtFg1lkl6OOmIGwKZy9ru5e4GBFsssFWoIL0bBuSBJjQ8lnQmRcF407CuGfaWXn+SZms=@gnu.org X-Gm-Message-State: AOJu0YwEA92fBi9yvpUBSe8q3zIr0WPmeeMjO3PP3YdvHEr7yBl+0THx ByFzl20bUK0vm2aFXYOly1rsNZ0Dhf2AfuFBM2LRZZ1Xgx68VTkZS3XIyA== X-Google-Smtp-Source: AGHT+IHvmHcbP9TibrQFk9jiH3zGa4mhI0pI3TC2DW13aMKQSRc3jSGxtKR5K+85XIyfdaTTO1udhg== X-Received: by 2002:a05:6a00:1790:b0:71e:4cff:2654 with SMTP id d2e1a72fcca58-72476b9673fmr13802835b3a.6.1731890235387; Sun, 17 Nov 2024 16:37:15 -0800 (PST) Original-Received: from pranshu-ThinkPad-E560 ([2001:8003:7816:8300:6d3f:1dba:23c8:ed60]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-724771c0d4esm4930387b3a.117.2024.11.17.16.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2024 16:37:14 -0800 (PST) In-Reply-To: <8599bc67-b05d-4afc-8e6e-1ba64a30054e@gmx.at> (martin rudalics's message of "Sun, 17 Nov 2024 17:38:10 +0100") Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=pranshusharma366@gmail.com; helo=mail-pf1-x434.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 17 Nov 2024 22:20:50 -0500 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:325493 Archived-At: martin rudalics writes: >> 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 I can't quite get it to work, imagine this scinario: +-----+------+ | A |__B___| | | C | +-----+------+ What the above split does is that is splits A, with refer B, and these windows aren't really siblings. So if I do pass the refer of A and B, it should be from A's parent, but then when I pass B with refer (cons C (B and C's parent)), won't it bug out since B's parent is being set twice?