From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Petteri Hintsanen Newsgroups: gmane.emacs.devel Subject: Re: Add function to rotate/transpose all windows Date: Tue, 24 Sep 2024 20:40:29 +0300 Message-ID: <87ldzhc5ma.fsf@iki.fi> References: <87setpdv21.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30014"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: pranshu sharma Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 24 19:41:26 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 1st9XS-0007eT-3w for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Sep 2024 19:41:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1st9Wr-0008Aa-J2; Tue, 24 Sep 2024 13:40:49 -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 1st9Wn-0008AO-Ko for emacs-devel@gnu.org; Tue, 24 Sep 2024 13:40:46 -0400 Original-Received: from mail-auth.kapsi.fi ([91.232.154.24] helo=mail.kapsi.fi) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1st9Wi-0003QJ-2v for emacs-devel@gnu.org; Tue, 24 Sep 2024 13:40:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NZhAGlnuXkBQVDmopQYWLRv22OIPspMMbfVmvXriG+0=; b=ahO17VxXlNTGBM0W8/X7aDQ/Bt M/qDCHy/AxD+icN26T4k6UdHm7EljGf++Uis8S4glN9VvLg9+RM+iwzKxGQUi7BO6BIk+kxtPd/ck /IyENhREIiRqLAcAVCCpOsZp380Sbq9F0kt2Wok670pzTNbfZgBodMFR5Io3/BGJx0QwYuWFrsj8N Vz9OrN2e7uZuhahsqsyZjx5PJeeME7ll07fmpgHghR2Tq7eYRmw+gtqLGYaa8A0bXGVaMga6DeRne ydBNhn43uE701+ztvJNpw5645ZAKr9EkdumB+04xmIa/dY1NkgWmS/lYSAUSaZeEB71w84Tq51ggM gQuCCbEA==; Original-Received: from 2001-14ba-46ff-d500-e18-dba8-a87d-663.rev.dnainternet.fi ([2001:14ba:46ff:d500:e18:dba8:a87d:663] helo=julia) by mail.kapsi.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1st9WY-004kU7-1F; Tue, 24 Sep 2024 20:40:30 +0300 In-Reply-To: <87setpdv21.fsf@gmail.com> (pranshu sharma's message of "Tue, 24 Sep 2024 23:45:42 +1000") X-SA-Exim-Connect-IP: 2001:14ba:46ff:d500:e18:dba8:a87d:663 X-SA-Exim-Mail-From: petterih@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Received-SPF: pass client-ip=91.232.154.24; envelope-from=phintsan@kapsi.fi; helo=mail.kapsi.fi X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_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:324041 Archived-At: pranshu sharma writes: > 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 agree, this would be a useful feature. Despite a hint of self-promotion I'd like to point out a minor mode I wrote a long time ago: http://iki.fi/petterih/cwm-mode.html It can do something like that, though not exactly. Having a general facility built into Emacs would be better. -- Petteri