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: Sat, 28 Sep 2024 17:58:11 +1000 Message-ID: <87ldzcryzw.fsf@gmail.com> References: <87setpdv21.fsf@gmail.com> <86zfnxcg57.fsf@gnu.org> <877cb09ln4.fsf@gmail.com> <9005cccc-7545-4257-b2c0-885a13d3bde2@gmx.at> <86o74aa41b.fsf@gnu.org> <3d4546ac-70d9-4865-b42d-0dc50cb0f3a7@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="34958"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 28 10:23:13 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 1suSjR-000916-Ei for ged-emacs-devel@m.gmane-mx.org; Sat, 28 Sep 2024 10:23:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1suSir-0001s4-GC; Sat, 28 Sep 2024 04:22:37 -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 1suSLK-0007yN-QM for emacs-devel@gnu.org; Sat, 28 Sep 2024 03:58:18 -0400 Original-Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1suSLJ-0002M2-D1; Sat, 28 Sep 2024 03:58:18 -0400 Original-Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-2068a7c9286so30869675ad.1; Sat, 28 Sep 2024 00:58:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727510295; x=1728115095; 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=mY1fm8hQWiBmK2G5YuszoCzqsWkui7K27xCx3hErW30=; b=JULAqbtlso35Gb3REN5eIkKC3crsV6xrBYgfooQwV2DMhlMvXvwL7YunhlBdo/0Hfn j0mAniMQnlDGpzJVGCoCAZxiFh6RXJ1dP2dfoYlBQnMewbZ3I0RYY5XYzkNVdka1m882 QHAEaYEPt1eAljvuIkFSWWD1PfqS1Edrm10gqXEdSEZNUl/FFxM5CClVlnIxvsJu2Wqt 9wf7uaPZbKTQZ38Pq2bt8dnyzdMMVb6b515Aky/iTk6tmEPsPUne4BQgthTIA4HIeq2b wiiwUVqGUIy/BudAbbWwtM/GgH2O7MsfFMqkqQGPLYAhUNjWGB9fYTEjZJt557mCDNVr iPYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727510295; x=1728115095; 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=mY1fm8hQWiBmK2G5YuszoCzqsWkui7K27xCx3hErW30=; b=Aeejcwk/7/A82AQUMQbMDB7V+Hy3iKO3CcKkAHY9ikUG8GQo47OsC2HWkcHW6xL0Hx KQ9UWgGzA0DU1Q0MP+nOSrvZBl/oUvfMbQUSfC7yXITR1iS2Ju0ZIBtoceh7aVP4vfvQ 1TptfVBAfNeseNC03pHo8IGSsSp6IYWKnpEKoNEbVyh89/EqoTRxadVUbfgBZndCvDqX GCgXaoXT8K2kc1es7oWXJ68efH5lZthp0fgk4WaC+2Cnds8FRA8BUTW6N1es3P9VQz/6 C4eacwss5tpL48Uk15HVAqok/m1SVz5OjZoYJQ5LejZWguIYemTWcMCs/lMg3KBLiFpM wPcA== X-Forwarded-Encrypted: i=1; AJvYcCXkFrqkjB2oRML5GSxIK8zVdPpAOSTbzboO7b5tBcKvL+2YL82deH+XXf+v9apHJM7KSVLsVVQdKg5WfQ==@gnu.org X-Gm-Message-State: AOJu0Yzpwtf/j0Li0soGxbaEAKG0YraD1RxZDKnPSVzUIRxzodvzZk6j jna1EQ1lvyUTYFV2PFj0oupAJI+9okjjbHK4PKtkXjrUHUpFvJH9b1I9VQ== X-Google-Smtp-Source: AGHT+IGta2oUmjx2E3ekUg2gRZjSyzsdB9/jA0k1opColt0VqNBEAeaZzZltd16yq2Lmsn+WDX1wgQ== X-Received: by 2002:a17:903:18f:b0:205:7f87:ba3e with SMTP id d9443c01a7336-20b3757fe09mr101172785ad.13.1727510295259; Sat, 28 Sep 2024 00:58:15 -0700 (PDT) Original-Received: from pebl ([2001:8003:7816:8300:be62:5525:b7f7:4de4]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e0b6e22cc7sm3395008a91.50.2024.09.28.00.58.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Sep 2024 00:58:15 -0700 (PDT) In-Reply-To: <3d4546ac-70d9-4865-b42d-0dc50cb0f3a7@gmx.at> (martin rudalics's message of "Fri, 27 Sep 2024 19:29:21 +0200") Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=pranshusharma366@gmail.com; helo=mail-pl1-x633.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 28 Sep 2024 04:22:35 -0400 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:324154 Archived-At: Accidently sent wrong definition of transpose-frame. The other functions still fine. The correct one is: -------------------------- (defun transpose-frame () (interactive) (let ((fwin (car (window-tree)))) (while (not (windowp fwin)) (setq fwin (caddr fwin))) (toggle-window-split ;; We gotta get sizes now, cuz if not then window split mess em ;; up (deepmap (lambda (e) (if (windowp e) (cons e (window-edges e)) e)) (car (window-tree))) fwin t) )) --------------------------