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: Wed, 25 Sep 2024 20:50:35 +1000 Message-ID: <8734lo9fd0.fsf@gmail.com> References: <87setpdv21.fsf@gmail.com> <86zfnxcg57.fsf@gnu.org> <877cb09ln4.fsf@gmail.com> <8e8d906c-2590-4e26-b582-4ab365d03a18@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="7189"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 25 13:06:42 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 1stPqz-0001ia-Sm for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Sep 2024 13:06:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stPq7-0003g0-Uq; Wed, 25 Sep 2024 07:05:47 -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 1stPbZ-0001yq-8H for emacs-devel@gnu.org; Wed, 25 Sep 2024 06:50:45 -0400 Original-Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stPbX-0000Se-Ho; Wed, 25 Sep 2024 06:50:44 -0400 Original-Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-7d50e7a3652so3939192a12.3; Wed, 25 Sep 2024 03:50:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727261440; x=1727866240; 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=EwoZi4r/+y7q+JVE8Nq+vwwNRcr2N4xkjiEqg0W5ysE=; b=Bicy/5tjaosFGGAx0Eo+TyFvKkoK22DO7mgPHDJpQwwdgWiGwwdOdQ90YeVoTepxec 68FdOmMHNTl9eNkmZ19OHDdywnyyKGosFBVZH5/9Ol3omUE7Arh9j9ga5MsmAKTvy/Kr oUxuV7A3w0i0oz1+IQAibblfxYrI8UEKAGFVBxQtnEWuPjFmugee62WJmIoVRYU2kn/m Sj/2Lf9W3oIDYThZz4VbrNoSwx0GMyRGrIjHOuG7WxSvohzDxVQS/qkwdw9SqnvPcPsh BWSLnhJHiKJ4dVeaPAtJSnNUhu06v5ENfE4r3kmYmEixMwD9dNRHpztr9AyuYhukFJqI +RDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727261440; x=1727866240; 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=EwoZi4r/+y7q+JVE8Nq+vwwNRcr2N4xkjiEqg0W5ysE=; b=S5TC90IID0m5eueSBAv16GWXX4zCVBA/EP9lcDtatW0Fp27w1TGk4U1aD//C7ceatm lx4eqMjnMLkR7jyLeYrtz8YjQHbAtVp1uexaUFF65HtclTyCLUPadmrgrQ6cd3lGU5iO k7J3FPWn14/F0EyDx7jtsw0w553gSOPdluY+2Pc1+IHBCZDbt+fh7fy6DwPUGtOyNK4d 4TV13zoi2+04u/jN1xmqVFZGjOesAO6EvHsFMpDtGhKNragr9NTye//R3IC+iTfklvfc A4tJryPmgXfYjjRMnIDoNgi/Q7poo7QbYNMtwP84xm4i2zFgw1BsPv0toROf45qOFRT6 wnBw== X-Forwarded-Encrypted: i=1; AJvYcCUKeNyUp79eB8W5XW3jq4F9z9g3TzrviikWsWsv4RBCLBNz7ER97SXrThsiPvW3Attjwrj1xnR3UaG2yg==@gnu.org X-Gm-Message-State: AOJu0Yxki5V5jCceXN39ZZK8ZCSNUGeTnafFy5WAj0suI69UOSNYdIfO Y5k1SNMClnIz1uI2qb0D8zJSP6H2aZYJtnnKlRFlzcBJUCxjvnfTO3cS5g== X-Google-Smtp-Source: AGHT+IECss7+dSceMB1dy9rxY8N7YVVIzbk/chZJxn1Pn/o7dln2VRa5kVtiv4t0Y6AiV/0aOcMmQw== X-Received: by 2002:a05:6a21:6481:b0:1d3:292a:2eae with SMTP id adf61e73a8af0-1d4e0beb3cdmr3599509637.45.1727261440247; Wed, 25 Sep 2024 03:50:40 -0700 (PDT) Original-Received: from pebl ([2001:8003:7816:8300:47c0:bc9b:d80f:8ab8]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71afc8443b3sm2547274b3a.69.2024.09.25.03.50.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 03:50:39 -0700 (PDT) In-Reply-To: <8e8d906c-2590-4e26-b582-4ab365d03a18@gmx.at> (martin rudalics's message of "Wed, 25 Sep 2024 11:31:47 +0200") Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=pranshusharma366@gmail.com; helo=mail-pg1-x529.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 25 Sep 2024 07:05:39 -0400 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:324057 Archived-At: martin rudalics writes: >>>>From what I understand, the main problems are happening when destroying >> and recreating the window arragnment. > > Right. > >> How about adding a function that >> toggles or changes the window arrangment non recursivly, which will deal >> with all the backend details, and the main rotate function can just >> recursivly call that on all windows. > > How would you "deal with all the backend details"? How would you > convince Emacs that the windows B and C in the right configuration > below > > - | A | B | | A | | > - |-------| - > |---| C | > - | C | | B | | > > are the windows B and C from the left configuration (albeit with > different parents and sizes)? I thought you would know. If it's not possible, then what's wrong with rebuilding the trees from scratch and clearly documenting that it's being done. I mean users will still have to do the same thing manually, which will also destroy change the window tree. > > martin