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: Sat, 16 Nov 2024 17:54:40 +0100 Message-ID: References: <87setpdv21.fsf@gmail.com> <87r085r2gl.fsf@gmail.com> <87zfms6z1a.fsf@gmail.com> <71571413-02ba-4e3c-ad43-35c110811fab@gmx.at> <875xpfns32.fsf@gmail.com> <0a2f09a0-4115-4421-a391-30d27e7d0821@gmx.at> <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> 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="3365"; 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 Sat Nov 16 17:55:36 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 1tCM5A-0000hh-2y for ged-emacs-devel@m.gmane-mx.org; Sat, 16 Nov 2024 17:55:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCM4Q-0007bN-QP; Sat, 16 Nov 2024 11:54:50 -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 1tCM4P-0007b1-Bw for emacs-devel@gnu.org; Sat, 16 Nov 2024 11:54:49 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tCM4N-0006Lh-L0; Sat, 16 Nov 2024 11:54:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1731776084; x=1732380884; i=rudalics@gmx.at; bh=iGDuyCEV64HmDziec48n2f83ZqsJ4Vjrn3D+BvUB5xU=; 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=ilOxaq4aU/cGDk4Khq6zIDq9lRxkGu8NGOIi4rl3HyUk52Kt7YSg3LaZ2e0xB8CB +rXj8JHnBLSFJ6fRY1bwYzV8ZdeT95VDtAFOnuwZZ+3yJbs2poYKN3Oz2n4NIzGTi VOB/H9zEjHQpdGT9iHrEHg4DdsARdba+286l8I+fX++KhaSKat+tgaFJ4dK8vpCug Pqfb6gRfg/NcdHdqJ8F+pidtLQNrX+aq+Cz0q6z2aBRioLrXEa9UfgDcrYX33fE2C Ukf3F2j1IfTgxu6yzckTd4wQaokoY8vml0jvf+9YcApozxkXs+9TJhKfuWGgDouHx JdqQIviQL/qTnc54vQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([212.95.5.81]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mf0BG-1tfN9y0V4c-00htbC; Sat, 16 Nov 2024 17:54:44 +0100 Content-Language: en-US In-Reply-To: <87bjyfcncu.fsf@gmail.com> X-Provags-ID: V03:K1:MuHT/FgrQffzWO6OYJd6qM9FbmlfDzOgtGumDXTp3aclMpoWo9j +jC0Mwjp+8Poit8BllRA2VgzpQjXkxPCcxp17iPev4HsrOxnqAN5X1QX1zLXRdlAPMSFr2k vkSxwzaDNpZHNd3+AdMv+RPE9QEeEcaugioA2f7KqIccFPFki/psuCfVxxUYTev82Ov3Iz2 0neUIaW5bKHiw8AqL/ePg== UI-OutboundReport: notjunk:1;M01:P0:wSh10xapukU=;zCxUnn2Yp+aZZXkE9pKV2aJw/MU LeiWKyilOcF8CnBsj2AIRJITaLwhl/3TdGME7VWSVh+3fQVNbxWvR3i7TMzl9dBCWDDCWCK16 z9WvFiPegRd6oT98RPYs8qsioA9O0tA048lAxYqW30SA3KR2jS5k0od2pzNKmBD230efEQ7XF Y0nzXMQ3AZQadM3IEPUXLIWW/eii9mLbbekqCugcT2uF7uX5mAf50wiMwS54ssUWAe+hPDa7e A7QxsrBirK4vAoeB2pOjAb5L7O3mBwN7cVc2jVaTd0hVNlzD2XB2V4xvKNJ+jahHg87jrZBzc YWgR0yUTuqd69GKCz7PbAw0mu1hRWtx154qm9uwQPGNvZBbk1o/Ss3FUbSrRY06zdo+fiKBCU gtMyEdFUS3B0l6ofR/Dn5xnVvOUYDK/o+BayZA4MEBOt+JKyUS0RJynw1pXXr7gGYc570D+xs yNHp0SgMAzdiUQW5jNVyZEDUGPJ5JcA1Y/IGUP7B8VzYql7H0FdSCKxhlFrc7t3Hpfw6Ullct dx0LqghG4HbTBvu04G4zrXVggeZC6PFeOEA9HHDr62WtXpJdmWPcH7nqmW1qjuGZKbjsJ9ahQ LLy/du3j/KK9/kVpbs4YUlEgVrpHxhtXr+OVbg+DyEWn8tqmM+doOb4BwSOSkA+OHnztQI0Wi IsR32inn9bOkHiw6321lgbaxv+1XipWDa648lrBMMbYKoeSSH+EZAoZZObXahNTpIb7KV5FUR QJZap2EGlhNAVGo2xdPKItKt5Us/q7tWTqa4/wHdJS7zGF7DyYS6syZ5xEIJrN4xFm48wY0F Received-SPF: pass client-ip=212.227.17.22; envelope-from=rudalics@gmx.at; helo=mout.gmx.net X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 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_H2=-0.696, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_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:325478 Archived-At: When I set up my frame thusly (defun window-transpose-setup () (interactive) (let ((foo (get-buffer-create "*foo*")) window) (delete-other-windows) (setq window (split-window nil nil t)) (set-window-buffer window foo) (split-window window) (setq window (split-window window nil t)) (split-window window) (select-window window))) and then run 'rotate-windows-clockwise' I'm told Debugger entered--Lisp error: (wrong-type-argument window-valid-p #) window-pixel-height(#) window--transpose-1(((nil . #) (979 . 1680) (# (979 . 840)) ((t . #) (979 . 840) ((nil . #) (490 . 840) (# (490 . 420)) ((t . #) (490 . 420) (# (245 . 420)) (# (245 . 420)))) (# (489 . 840)))) # (left . below) nil) window--transpose(# (left . below) nil) rotate-windows-clockwise(nil) funcall-interactively(rotate-windows-clockwise nil) call-interactively(rotate-windows-clockwise nil nil) command-execute(rotate-windows-clockwise) which is one of the problems I tried to make you aware of. IIUC window 44 is a deleted parent window and you try to get its pixel height. But Emacs doesn't allow to retrieve the width or height of a deleted window. Again I can only suggest to set up a window alist _before_ deleting anything so you can retrieve the sizes of the deleted window from there. martin