From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: src/nsterm.m: fix window tabbing on macOS Date: Fri, 28 May 2021 09:54:53 +0100 Message-ID: References: <39fa782b82e274d3e9c40e934df89d68@purelymail.com> <4cf0b73bcefc7d159881d368b3a4b7f5@purelymail.com> <14A97A03-E9F8-4B6D-8E58-D29CEFA7931C@bydasein.com> <5a9c34f8-fcc2-fb5d-f726-e1ce47621ed7@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36955"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Paul W. Rankin" , Andrii Kolomoiets , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 28 11:02:30 2021 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 1lmYNx-0009Mx-0S for ged-emacs-devel@m.gmane-mx.org; Fri, 28 May 2021 11:02:29 +0200 Original-Received: from localhost ([::1]:57608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmYNw-0002WB-3B for ged-emacs-devel@m.gmane-mx.org; Fri, 28 May 2021 05:02:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmYM8-00017u-9F for emacs-devel@gnu.org; Fri, 28 May 2021 05:00:36 -0400 Original-Received: from [217.169.17.33] (port=60796 helo=breton.holly.idiocy.org) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmYHc-00046u-S5 for emacs-devel@gnu.org; Fri, 28 May 2021 05:00:35 -0400 Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 2B927202C35415; Fri, 28 May 2021 09:54:53 +0100 (BST) Mail-Followup-To: Alan Third , martin rudalics , "Paul W. Rankin" , Andrii Kolomoiets , emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: <5a9c34f8-fcc2-fb5d-f726-e1ce47621ed7@gmx.at> X-Host-Lookup-Failed: Reverse DNS lookup failed for 217.169.17.33 (failed) Received-SPF: none client-ip=217.169.17.33; envelope-from=alan@breton.holly.idiocy.org; helo=breton.holly.idiocy.org X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:269981 Archived-At: On Fri, May 28, 2021 at 10:36:07AM +0200, martin rudalics wrote: > >> What do s-n and s-w do (which emacs function do they ultimately call)? > >> > >>> Repeat steps 3 and 4 few times, note how the frame height is increased. > > > > s-n (make-frame) > > s-w (delete-frame) > > Hmm... Then "the frame height" refers to the height of different > frames? Does it always increase by the same amount? Does it ever stop > to do that? Without having looked at it at all I'd imagine the problem is that the tab-bar is an extra toolbar below the Emacs toolbar which we will need to take into account when calculating the size of the various components. For example, IIRC, the height of the Emacs toolbar is calculated as the height of the OS window minus the height of the Emacs view and the titlebar. This is clearly not going to be right when we have an extra widget in there. -- Alan Third