From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.devel Subject: Re: master 6a2ee981c3: Add new functions for splitting the root window Date: Fri, 16 Sep 2022 14:30:03 +0000 Message-ID: <84acc36e7edde6dee845@heytings.org> References: <166240424802.11417.12502552895310232639@vcs2.savannah.gnu.org> <20220905185728.838CEC0088A@vcs2.savannah.gnu.org> <86h71kseiw.fsf@mail.linkov.net> <87illzmjew.fsf@gnus.org> <868rmvxdvj.fsf@mail.linkov.net> <87bkrq5bmb.fsf@gnus.org> <87pmg69ifi.fsf@gmail.com> <87h71i3vr3.fsf@gnus.org> <864jxfghcf.fsf@mail.linkov.net> <87sfkygokp.fsf@gnus.org> <87r10hg5u7.fsf@melete.silentflame.com> <87v8pp3y1f.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15636"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , Sean Whitton , Lars Ingebrigtsen , Juri Linkov , Robert Pluim , emacs-devel@gnu.org, Hugo Heagren To: Augusto Stoffel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 16 16:35:16 2022 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 1oZCR1-0003mT-Sr for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Sep 2022 16:35:16 +0200 Original-Received: from localhost ([::1]:57058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZCR0-00075d-PF for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Sep 2022 10:35:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZCM8-0003zJ-Bk for emacs-devel@gnu.org; Fri, 16 Sep 2022 10:30:16 -0400 Original-Received: from heytings.org ([95.142.160.155]:42688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZCM6-0001GI-1t for emacs-devel@gnu.org; Fri, 16 Sep 2022 10:30:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1663338604; bh=hB7qW/PBz+oBqfPSww/yrg+FKkENxk58AbG/qYh6qDs=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=N9/rW69oYgxcM4/r+30js8El7j82CW017zbNNFLiBWek95sBZyNjYJrc5qgnYzmgt SZSOrpWOIyD3gxiP0tnZpptXreYtPnqI5twxiMTXyn3LI32P52gbyuuJY0TO5FJl/H tTCpKWgpX0a7Cd/jqq0yz/xsqACWBKTusN1xPAByjwIp9YlIV/WZrOl9/kdQMCbNg+ fEJ8yEK3SH/Dirs5VkcO4o7yxgueH+AbSaKBQi1dUXntt2BqrEWSYF7RjI5dMFmnU2 lW0+ckg7W6HWPCVQYBvAF75OS6Bf2fmdttbOxgSSxj1PwMxlughm6By6SQULlmIaaD toCUbzY3QWX2A== In-Reply-To: <87v8pp3y1f.fsf@gmail.com> Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-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" Xref: news.gmane.io gmane.emacs.devel:295471 Archived-At: > > Since you mention various custom repeatable commands, I think we're > missing a less drastic version of delete-other-windows which deletes all > siblings in the window configuration tree of the selected window. > > In other words, the non-root-window version on C-x 1. > Is this what you have in mind? (defun delete-other-windows-soft (&optional arg) (interactive "P") (if arg (delete-other-windows) (let* ((w (window-child (window-parent))) (wl (list w))) (while (setq w (window-next-sibling w)) (push w wl)) (dolist (w wl) (when (and (not (eq w (selected-window))) (not (window-parameter w 'no-delete-other-windows))) (ignore-errors (delete-window w)))))))