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: Wed, 4 Dec 2024 18:56:19 +0100 Message-ID: <30c31060-6be4-4dab-8e49-c6f543821ea5@gmx.at> References: <87setpdv21.fsf@gmail.com> <87frnp2x85.fsf@gmail.com> <823c7cca-63d4-4568-94bc-11f5949d6c5c@gmx.at> <87h683muss.fsf@gmail.com> <02432e6c-6ee2-4c68-9ebb-246f6be88918@gmx.at> <877c8wadke.fsf@gmail.com> <878qt8spp2.fsf@gmail.com> <0ce35c7a-8b28-4905-a6ab-caf50f2fc750@gmx.at> <87mshl2i6h.fsf@gmail.com> <9b460366-f34e-48f6-a680-e7fa5bc7f598@gmx.at> <87bjy03fql.fsf@gmail.com> <356d63bc-818c-428c-b31b-a0eb227b3a8a@gmx.at> <87o720gjst.fsf@gmail.com> <7dfe87a0-b367-47df-86df-f8fd95163fd6@gmx.at> <8734jbz8sb.fsf@gmail.com> <50ab6c0a-6afb-4727-9094-178668fc4f4e@gmx.at> <87zflfc3cd.fsf@gmail.com> <87y10ycxv6.fsf@gmail.com> <87mshbiiee.fsf@bauherren.ovh> 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="3490"; 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 Wed Dec 04 18:56:55 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 1tItcM-0000fQ-J8 for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Dec 2024 18:56:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tItc0-0005A8-AT; Wed, 04 Dec 2024 12:56:32 -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 1tItbt-00056j-69 for emacs-devel@gnu.org; Wed, 04 Dec 2024 12:56:26 -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 1tItbr-0001dx-9v; Wed, 04 Dec 2024 12:56:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1733334980; x=1733939780; i=rudalics@gmx.at; bh=x/1qxwT0tHY/ozgaxKcmqRRV/13NXlqb6z+ylYaAjU0=; 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=HWAGGHQYc4Xy4y4TLaX9yO3J5IhR4NqYoUlQ6GF/LMSQgQqZpRCxFVkcztJeYWSV m7OTByeBW+NN6nhTYORPpIfCAKbLJXHEC7mwL5PwlGFpMT9KQamatleIxTe3T47wd RyweO+bU8UCB+k1W0vOPgpMMeAzVViIhGUbVoOa8+scZIUWTFQIJvevN4P5dHrEWP uLtbczxuUOhCTQDoQKeX5gewDfM7HIqADZh3E98x3YvNHdajHTnDk1RLdt30Ywp8Q Iuvy9dFuAk4uMWVimJ+uQMdLE6CMgboXVex1q8LruitWjEBQivpGQhfu52XT2kSva azs0j9LUMVNOIdfocw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([212.95.8.217]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MRmjw-1tCxJu1VGM-00ORmU; Wed, 04 Dec 2024 18:56:20 +0100 Content-Language: en-US In-Reply-To: <87mshbiiee.fsf@bauherren.ovh> X-Provags-ID: V03:K1:15YxSH2Vmxivf483EceJREOjsYkCuKZK90bC1HIK8zNGyFaiI46 40PHfJu/w/FkLTwV+uI25TTUGacsWkRNrrYJ82aUHOttPJD0o7J8yaU5vPI2fKzBqpc4ig9 s0s58JDxJAsBVOEKTFJKeJyKNyogWGPP8Ot8GZi3s6vMb7ciR+V3GUWBE6naHSATwB9KtO6 1zvQaxPB4jwcIIQP/6FSQ== UI-OutboundReport: notjunk:1;M01:P0:1pvHdVPgr1A=;MC7P7qlWakP27QClljiSoIu/6pd YYt8yOEoY9IlkKjiop8xn4f159nAp6voBf9Cj2hwVrkvraPcGEMzCI9/EmWJhDdKlv6d8cjOW YMIz9zsRTZVCYw91nGShoohK5h5OSPIQN3oGO8T+vImwuNS14OL0S7xs70cfoo5a+5yYxN7V9 ZaLBR9jjiJidDJjphcjMgKFh25Z6sOxSAoR7uBQEoH0Z5WGSKPZVm8/WoTMGai2XdHbgPudP5 YQh/9cRWUdNS/bohiKfH6VubmeiVJgNYAfNY6ZJgZrg3LbROVwQ5qwzpi5qPCLpB+78OGrY30 f9RDMYiiyfhH1JGfGm+7l5+g2/UN4Mhz7ZkeMwFCQZ5my/XBe//jhrTBkiQSN3TM6tTXlA6AG gGdTCGjZemxRWko6vIC9l2I6QsBoU0OsductgLBoNfBcwVHDPV/s7xd9FF7H8NVcK9GdjWN8B iadba/FWkuSFBB+snJIbTsDWoKGy7w8buSOTEw8u6Xb5+yNhnKTFD2Tmx38+1QC6KZJqY3nNA wfhm5yr2BPMQOnV3Ujb+P88bJ9EG5vH6TmQvnQXyCPkW088O8sqlb7kLp/EQobtv3P3tEFcr2 4nI3bsDWic26OX6ccbQyAn9c92Qnnmz1dTG901RW/5gI/cikovPtJ2m5Z1pE7rH7S9lE9xvv7 FVzLHd5Wd+9Ywg9e9TppkT0hrwNpq5+080u3iLi2nKGiLaJHQ+7eY27L25extqhKdcQh7qRD2 Tov0ZXiFUEJP1Fm86qYyylccrF/HNhCSWngNCVGN+BMjag9bdYg3hlYVgNW8VN52UZptLG5q Received-SPF: pass client-ip=212.227.15.18; envelope-from=rudalics@gmx.at; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:326045 Archived-At: The naming still isn't OK. Richard proposed to rename the old 'rotate-windows-anticlockwise' to 'rotate-window-layout-anticlockwise'. Also, there > Transform the layout of windows such that a window on top becomes a > window on the right, a window on the right moves to the bottom, a window > on the bottom moves to the left and a window on the left becomes one on > the top. is the explanation of 'rotate-windows-clockwise'. The line > If FRAME-OR-WINDOW window or frame, operate on it. If FRAME-OR-WINDOW is nil. doesn't make sense. I'd still go with my earlier proposal If FRAME-OR-WINDOW is nil, rotate the main window of the selected frame. If FRAME-OR-WINDOW specifies a live frame, rotate the main window of that frame. If FRAME-OR-WINDOW specifies a parent window, rotate that window. In any other case and interactively with a prefix argument rotate the parent window of the selected window. If you think it's bad, please tell me why. 'flip-windows-horizontally' should then become 'flip-window-layout-horizontally'. > Flip the windows horizontally as so the layout becomes it's horizontal > reflection. should be elaborated as well. Something like the windows on top move to the bottom and vice-versa. 'transpose-windows' should become 'transpose-window-layout' and 'rotate-window-layout' should then probably become something like 'rotate-window-contents'. As soon as people use it for the first time, they might come up with better name, hopefully. > "Make every window it's previous window in the cyclic ordering of windows. Better "Move windows into locations of their predecessors in cyclic ordering." maybe. > "Make every window it's next window in the cyclic ordering of windows. Better "Move windows into locations of their successors in cyclic ordering." maybe. > If NO-RESIZE non-nil, the size argument of > the window-split is converted from vertical to horizontal or vice versa, > with the same proportion of the total split." Then I misunderstood and you should probably call it RESIZE. But "the size argument is converted" should probably become "the SIDE argument is converted". Our next task will then be to write the documentation of all commands for the Elisp manual and we can do a more thorough explanation there. There I'd like to show parent windows as in ______________________________________ | ______ ____________________________ | || || __________________________ || || ||| ||| || ||| ||| || ||| ||| || |||____________W4____________||| || || __________________________ || || ||| ||| || ||| ||| || |||____________W5____________||| ||__W2__||_____________W3_____________ | |__________________W1__________________| (where W1 and W3 are parent windows) and show what rotating, transposing and flipping the layouts does. martin