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.devel Subject: Re: Add function to rotate/transpose all windows Date: Tue, 24 Sep 2024 16:53:08 +0300 Message-ID: <86zfnxcg57.fsf@gnu.org> References: <87setpdv21.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10397"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: pranshu sharma , martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 24 15:53:47 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 1st5z9-0002as-6X for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Sep 2024 15:53:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1st5ym-0008OL-EY; Tue, 24 Sep 2024 09:53:25 -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 1st5yk-0008Er-5A for emacs-devel@gnu.org; Tue, 24 Sep 2024 09:53:22 -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 1st5yj-0003ej-M5; Tue, 24 Sep 2024 09:53:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=yZW64a/s5H0VZUmpPeJoW756quztuiEGBWcRiTAMc3c=; b=JjoObkP1rrb8 sSzTSYU2guqbsDF5V5VtIaZthFpbS0Sf491NHmiMgjkSYALK/pYi7EBfOxBzJGI6/xuCtOjylNI0f jWy5wc3lLTGG8CC+6cDpYdKt6bXeMWThwiuM/7ABjuwkSu5v4NIP56oh1pnhm3UUs0HLGHgo1P175 RcJIgX08DT18vzruQnRp2TZaajBfJh9o5m4dQlcpwYxa+fz9AnSc5M0kehTQ5WZPpcsHOq1Lv/xWt WMb9CkHwO64WpdwlStzAYHpKFtgUw9D7g1pKvhZRmZh/4QpC/RT7WjiW1qHD5vsuAW6JH8cvNwyyD /UPbGK5pottyL97JFFgZNA==; In-Reply-To: <87setpdv21.fsf@gmail.com> (message from pranshu sharma on Tue, 24 Sep 2024 23:45:42 +1000) 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:324037 Archived-At: > From: pranshu sharma > Date: Tue, 24 Sep 2024 23:45:42 +1000 > > > An useful for function for C-x w map is to add a function to rotate > windows. > > What I mean by this is basiclly rebuilt the window tree, but do vertical > split where a horizonal, and vice versa. > > For example if we rotate the the frame with the windows A B C: > - | A | B | | A | | > - |-------| - > |---| C | > - | C | | B | | > > I think this is extremly useful, as sometimes for example I open a > window with a horizontal split, and the lines are rather long, then I > have to manually toggle the window split to vertical. > > An example of this: > https://www.emacswiki.org/emacs/TransposeFrame > The code in this has the following limitations: > - Does not work in emacs 29.1 > - No good way to transpose only specific parts of window tree Thanks. Martin, any comments or suggestions?