From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Understanding atomic window groups Date: Fri, 24 May 2019 10:01:08 +0200 Message-ID: References: <87tvdmqsxq.fsf@ericabrahamsen.net> <0a820a2c-8b37-469e-6b0e-61b126b6c7b8@gmx.at> <87lfyxszb5.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="225755"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Eric Abrahamsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 24 10:03:01 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hU5AK-000wZB-UU for ged-emacs-devel@m.gmane.org; Fri, 24 May 2019 10:03:01 +0200 Original-Received: from localhost ([127.0.0.1]:50720 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hU5AJ-0006wt-QU for ged-emacs-devel@m.gmane.org; Fri, 24 May 2019 04:02:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hU58q-0005vB-I1 for emacs-devel@gnu.org; Fri, 24 May 2019 04:01:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hU58o-0005Wu-JY for emacs-devel@gnu.org; Fri, 24 May 2019 04:01:28 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:54001) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hU58n-0005VX-5h for emacs-devel@gnu.org; Fri, 24 May 2019 04:01:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1558684870; bh=6EDBq7P1zggQtmcl4yqcdfIS0KOJXeeChmqKpR+7eC0=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=Q/vvGfzUHI9UQMbBMJEzwbtuv1v75HmQnNP74SPwKWMpsGlbwLHhZRf8JhodpGULK 2S1VDBQ8yyhgphhHvZOD6YYJn/oFVCUPT7ugykCT3tItJLweaqAaRW0MUzwEYQvRSV sklATIhlK1B1/CfIhm2p+ij5MUTX6KYkJg/v/zbM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([212.95.5.198]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MbPLI-1hBRn02Q3o-00Ipj0; Fri, 24 May 2019 10:01:10 +0200 In-Reply-To: <87lfyxszb5.fsf@ericabrahamsen.net> Content-Language: de-DE X-Provags-ID: V03:K1:bk/axyXrJlrCPEGHlYumPSYsXCSscLC5+0GF5+U2gChAOjCQ6Ag Kb7jD793aD7hua9PlepTGmjZHaMMLq9jfDL1wFTC90DdoLo8qCtDsAZ5UDWfCGgBngheqMJ SVNMWShMiO8XFM9AMjXHs7U+ncnbSylvbYnAkpyBIjJFoEod/XPgFPA3lEEvxrBoljf0NH0 MFSwM/iLuFbh6b6MahGgw== X-UI-Out-Filterresults: notjunk:1;V03:K0:vIpXPHmmxao=:JA/3x1zgnBWUHrBKfGAcwo yZc4cxUM3oC9zSYHFhnpcpxkMElu2XWob8yxHbQnbNYVcPR12PhXXSniBheLlAVRJagNI7GKG drHZbKikukQE5TemUa5vchtfI8nrf10wNbjmcbbt5tqS/NiqjjBV6xZDa+CsDL4M704BI2rux 4RuEXls7K8JHHbIuuyJWOnprPmFn6a/2v04SHzwk8TEvvRF2ZDi5WSclm3lEx4f0AJohH4CfM 2niIY7UZ78uH/fUiYZEKzrP0Bt+McmaooddSmmKAmeCm+KuFekumavQgsDpmMXS1BZDTGtjLl ZUoIUvdC5hsluJKV6lkTXTNQ++HuI3hM7+8urAp1wUXkPtv5WznRG41AV4oVBvRWBtXUaY6vj 0wykqXdhL1BYzMP8hTJU5m1jxPaptu5ah5baXYUbdL+B17BMjJl7B225meMGQ7/XJvW4C32H9 QimkGueMzXm4eqrn5O3LniBlO8sJF6w/NzMdfXxCFlnt6cgZat+dgkWMsAlTzYD6DdAMe9mcx /WPcODCcbJiZPnRPUnxStxZ6oLPpi+qdgYnVllGlKQ4Q8WsTpKwV5Nes530V6LlEdSbeL6PGe N5dkfhXE9+EJezAuush8OOxI1dIQLI4n3OdazvujChTYrRx80OpSqrPfsDrrw4O009vO4roK3 5ziY0EV93jLPwv+Azk5nzeR7EqGPuNV60rW7f9UvJrZBvCt5T4EaFWQdiFf+gnQHnyv51cSt2 yc15++Rdl3BvV5mw+J/7BA0w6UGXwYXk8XCxY8Hl/QRoNFR1AEXaZgPgr8P8JhzxrnN2nCH8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:236957 Archived-At: > Oh I see, thanks. I thought I had to check for the 'window-atom > parameter on the parent, if there was a parent. Atomic windows can be arbitrarily nested so checking for atomicity of the parent alone is in general not sufficient. >> 'quit-window' does not necessarily restore to a state that invalidates >> the atomicity of the containing group. 'delete-window' OTOH may do >> that, so if 'quit-window' deletes all windows of an atomic group but >> one, that atomic group is dissolved automatically. > > Hmm, maybe it was `delete-window' that raised the error: > > delete-window: Root of atomic window is root window of its frame > > Whereas `quit-window' behaves in a way I can't quite pin down -- it > killed the buffer in one case but not in another, didn't change the > actual window layout, and moved point to the "first" of the atomic > windows. 'quit-window' calls 'window-deletable-p' before it tries to delete a window so it should never cause a "Root of atomic window is root window of its frame" error. If it does cause an error we have a bug so maybe check again. 'delete-window' OTOH will raise an error when the root of the atomic window is the root of the frame. If you want to avoid that, typically because most of your users who type C-x 0 expect the selected window to disppear or those typing C-x 1 expect the selected window to become the single window of its frame despite of atomicity, you will have to adjust the behavior with the help of 'delete-window' and 'delete-other-windows' parameters for all involved windows. martin