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: Fri, 27 Sep 2024 20:06:43 +1000 Message-ID: <87v7yhs958.fsf@gmail.com> References: <87setpdv21.fsf@gmail.com> <86zfnxcg57.fsf@gnu.org> <877cb09ln4.fsf@gmail.com> <9005cccc-7545-4257-b2c0-885a13d3bde2@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="34186"; 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 Fri Sep 27 12:23:12 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 1su880-0008mL-7B for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Sep 2024 12:23:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1su877-0006lW-T2; Fri, 27 Sep 2024 06:22:17 -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 1su7sB-0005Um-Ta for emacs-devel@gnu.org; Fri, 27 Sep 2024 06:06:51 -0400 Original-Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1su7sA-0006q4-Et; Fri, 27 Sep 2024 06:06:51 -0400 Original-Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-2054feabfc3so18193035ad.1; Fri, 27 Sep 2024 03:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727431608; x=1728036408; 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=lGzeSHtinBD8b/4pVXgWN0Qo7bh8iUVsFvlKjXzGIqU=; b=IdEZ6OV1qb0Oi7mQarVI81URTRkJZc0aV7f74PrwtvbfWcI3MwU3fNJArXCUGvJSLC QGbK6PY9ggyEouG5XC/KlUGMx3SYikqEEqV4HcmVpAITWvUXLvM3HWJhkiPVAQpY5fW4 sIZk16Tl4njIVc46+HlKDVvgnHQTZFC67gMjY78bglH47bzGuVJFHN9UAhTwV19Khcu6 ZOC24KK00xAa9hNk8l1yDZOQDSiumiwZG7azcfoUawD7il0DZURjBMYX0KGXLP5sZJcj UXbsNQ/jvslv9L5RZkojT+ll1Io73Gpow4S+aGGNVFZtW/97UtgKtFU7nbMBYkgsd+NV IY5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727431608; x=1728036408; 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=lGzeSHtinBD8b/4pVXgWN0Qo7bh8iUVsFvlKjXzGIqU=; b=e4LUg6DgbEKebfqaXVqte+awb562Ujq5VVcr1JLxwqClEGglgwakpriLWWrQ2JO0kG 11NW3YMLD0qTEKtih04bsh8nk+EMglHzj15haMFspvfvDnKImrVKuI/SXN48d/9oxDc4 yqfDD5KKMrvbeyynr849SPHVxankgll+vwa610UB49WFTQwLSzfQ63ygRQO0lQVJF+Jn 4gRDUgNtKMLfyQSMBGBGTiDiVohHvF8rh9OLfqluClcUuHoT7793t7uP0h3ZUxidQ2r/ DFV7tYKmWDbXy/F94lweK84wS7jL4ZJ7GjpdA7goMyZzi36SuZppr3AsCEtMAHDCgI98 UouA== X-Forwarded-Encrypted: i=1; AJvYcCUuf/eWy0Wdiu1THmSP7nTBhxpYOSaywXomQf6lT6LQXQZEW2jchvgVn0TtZSr4ux714r3/+JJZlg2pAg==@gnu.org X-Gm-Message-State: AOJu0YyVvUi8+h+VinluhvYfSmwwgVyo3BfqegLFsjNNSbRihpptClzb bP27LFCv+lPO7jR+MxJTEY3M564fasoTwyUSjx47CGljU/Zy4zpwNeAC2A== X-Google-Smtp-Source: AGHT+IH45zNvFV1kFS97QdA7lg09RbCjLhaaOOfuPWmi1y7JdP5LENADpTwVZ2O5qh6rVhA7W0U1lQ== X-Received: by 2002:a17:902:c948:b0:20b:43f8:d764 with SMTP id d9443c01a7336-20b43f8d994mr17061455ad.8.1727431607766; Fri, 27 Sep 2024 03:06:47 -0700 (PDT) Original-Received: from pebl ([2001:8003:7816:8300:34dc:b6ae:b8ea:b44]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e6db293112sm1316017a12.8.2024.09.27.03.06.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2024 03:06:47 -0700 (PDT) In-Reply-To: <9005cccc-7545-4257-b2c0-885a13d3bde2@gmx.at> (martin rudalics's message of "Thu, 26 Sep 2024 16:10:48 +0200") Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=pranshusharma366@gmail.com; helo=mail-pl1-x62c.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: Fri, 27 Sep 2024 06:22:16 -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:324131 Archived-At: martin rudalics writes: >>>>From what I understand, the main problems are happening when destroying >> and recreating the window arragnment. 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. > > I attach a function 'resurrect-window' that rotate/transpose/flip > functions can call to resurrect the previous windows after having > deleted them. Thanks, I tested it and it works. I'll get back when I've rewrote transpose frame