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: Sun, 10 Nov 2024 20:09:11 +1000 Message-ID: <87wmhb2yew.fsf@gmail.com> References: <87setpdv21.fsf@gmail.com> <87frotqx90.fsf@gmail.com> <87y12iyidd.fsf@gmail.com> <87iktld1bd.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33953"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Juri Linkov , Eli Zaretskii , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 10 11:24:02 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 1tA56v-0008fo-NW for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Nov 2024 11:24:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tA56G-0005C7-6R; Sun, 10 Nov 2024 05:23:20 -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 1tA4sT-0004AX-21 for emacs-devel@gnu.org; Sun, 10 Nov 2024 05:09:05 -0500 Original-Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tA4sR-0004t6-9x; Sun, 10 Nov 2024 05:09:04 -0500 Original-Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-7f3f1849849so2475756a12.1; Sun, 10 Nov 2024 02:09:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731233341; x=1731838141; 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=BErMSp0G2Ht7qU19bo45DHVBqKufDvV+sHwnehZ5rk4=; b=HEq8JnNiL0qt+2cJJKW4BAdrD2oqRuAiMs0Z7uu4ihe33a/pZPGmOwK6wSdNDS/cHc bNABmyJ+VRU8PWglLUV+AEl6AG5wN8WmxdxJWD1o2KnZ9e6UjT7CnhOUINNuclkFfUjN ZKtOyZj5F3bINPLO3igIcw0jzzMl1XsXZkst19IeS9tJ+5gfhxN2BZmoctcCjDJFQcVE ykkMeUJo9XnLXyNHNsVx4jLCFM1hO3TMgn3bMasBbToYlkIVUDdXXlxWYti/72Dsppld neWKWcbXhIHZrbIHFjX1nqMA3nA7GsCFvStmXQdJhPWAdi1tKzrb7Li5VwleIY1w/bA0 MOmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731233341; x=1731838141; 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=BErMSp0G2Ht7qU19bo45DHVBqKufDvV+sHwnehZ5rk4=; b=rKicPR1E5aMte+2qEStaHT9hRsQPlsj/LLYss1rvEfPIl6gX99YOiP1RF6A2S4KHqw W+ChHRiDasfi8cJLOZIe7OUTGj5S3nKq0C5soIuFOjrTACgLpmHNVc0SU/WRccpIXYOT ZmH9HMN9ySkFkgDJvPUhnBJ6cEWUyQrkjJyNJU/bSNfwHRUjzgatw39jZObeNide86yX bbNL2h67BMx/pAWKFpJegWNgF+4R7aC0XF6LM7aK6xMLsr2PSDVbxIpzvsauZ14xa8mo vilRtdf0Xx+lSdrVhauGkrRXJhMHJomze7osJlPnn4xtlMlcg73cQjh/dkcCyDxLjwHx B5mQ== X-Forwarded-Encrypted: i=1; AJvYcCVnPrYCSlG8C/yYdLtkZY7wombfKtq+ZbwGY9z80T8vkK4ulrtzqtSfk9IVRWkyYCTmnny9ACfrRRKnorE=@gnu.org, AJvYcCXLAedctF0iBtapsezJM5jnhaC8P2u3EufNr7ghslDWcELS9VL42S3nw7tVJDGtrsHs5j9z@gnu.org X-Gm-Message-State: AOJu0YwTDUAKYK2B073Oaskev/CV8XtuwASDas73Pld6hixtSeVDvFqd 09HOFCVgKQM/hSF1MpzcH2M1joWy75vGQTPVqyW2GEfPImjFNGPEesWHVg== X-Google-Smtp-Source: AGHT+IHTED8Ib7L7qIzmURrMXK+oCuiGml/KVnoEOeVwBI7Q41sMlY7/XJwq3WnBxpGsuwVuUNNbYw== X-Received: by 2002:a17:90b:3c01:b0:2e0:cac6:15f7 with SMTP id 98e67ed59e1d1-2e9b147340bmr12428664a91.0.1731233341389; Sun, 10 Nov 2024 02:09:01 -0800 (PST) Original-Received: from pranshu-ThinkPad-E560 ([2001:8003:7816:8300:7d86:c544:3b07:bf8d]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21177ddd675sm57412595ad.73.2024.11.10.02.08.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2024 02:09:00 -0800 (PST) In-Reply-To: <69658762-5fc7-4a9d-9262-528dfd9e93cd@gmx.at> (martin rudalics's message of "Sat, 9 Nov 2024 19:06:13 +0100") Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=pranshusharma366@gmail.com; helo=mail-pg1-x52b.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 10 Nov 2024 05:23:18 -0500 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:325368 Archived-At: martin rudalics writes: > Which limitation? The one that parent windows get resized? I do use > the normal size of windows (a float between 0 and 1) which does not > change when you make the frame or some ancestor window smaller or > larger. By design, it should work. Although when rotating we "flip" > the normal sizes - what was a normal height becomes a normal width and > vice-versa. Slightly scary ... The on where I showed in earlier screenshot, where the parent window being split gets messed up. >> Other then that, I don't see any problem with this code. I think >> all it >> needs is some polishing, and it should be easy enough to add the >> support >> for flipping windows. > > For some value of easy. Can you try to do that? You would have to > write it from scratch since the rotation code will hardly suit. Ok, I'll first try to get the other functions working with the existing code, and if it starts going south I'll start from scratch. > Note also that the rotation code > > - always rotates the entire frame (you want it to rotate arbitrary > parent windows only) > > - doesn't care about side windows (a similar problem - it should > rotate > the main window instead) > > - might fail with atomic windows What's an atomic window? I read the manual but still couldn't understand > - doesn't care about fixed size windows > > - might fail with small windows. Highly unlikley, I tried it with very small splits and it worked. > The latter two probably mean that we should run the algorithm with > fixed sizes and minimum window sizes in place first. If > 'split-window' complains, re-run the algorithm ignoring fixed-size > windows and minimum sizes. What is the expected thing to happen in fixed size windows? > And always keep in mind that once our functions exist, people will use > them on-the-fly, expecting them to "just work". They won't forgive the > smallest misbehavior. ngl, when you say it like that it sounds like I am making food for a kim jong ung