From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Tabs Date: Wed, 09 Oct 2019 21:46:56 +0300 Message-ID: <83zhi9u57j.fsf@gnu.org> References: <20191008085604.tjtxm6ndyuluocbs@Ergus> <83lftvy4s6.fsf@gnu.org> <20191008160038.6xvnytnoruzphzd6@Ergus> <83zhibw6qn.fsf@gnu.org> <20191008164048.bnad4wdkcbatqepp@Ergus> <83v9szw4o4.fsf@gnu.org> <20191008234350.ahxt4zcylxqludoc@Ergus> <837e5ewc0a.fsf@gnu.org> <20191009103936.qjdwuidqnowswojw@Ergus> <83wodeup6a.fsf@gnu.org> <20191009120534.ud6st2xvrv3rv6iy@Ergus> <83pnj6umjx.fsf@gnu.org> <191fdb9e-a0ad-62d5-b214-fead90ec4bda@gmx.at> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="117100"; mail-complaints-to="usenet@blaine.gmane.org" Cc: spacibba@aol.com, emacs-devel@gnu.org, juri@linkov.net To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 09 22:46:15 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.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iIIqa-000UGx-Rf for ged-emacs-devel@m.gmane.org; Wed, 09 Oct 2019 22:46:12 +0200 Original-Received: from localhost ([::1]:57538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIIqZ-0003jL-CB for ged-emacs-devel@m.gmane.org; Wed, 09 Oct 2019 16:46:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45903) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIGza-0001j6-VJ for emacs-devel@gnu.org; Wed, 09 Oct 2019 14:47:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iIGza-0006i5-53; Wed, 09 Oct 2019 14:47:22 -0400 Original-Received: from [176.228.60.248] (port=4816 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iIGzY-0002SK-Pa; Wed, 09 Oct 2019 14:47:21 -0400 In-reply-to: <191fdb9e-a0ad-62d5-b214-fead90ec4bda@gmx.at> (message from martin rudalics on Wed, 9 Oct 2019 20:12:44 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240792 Archived-At: > Cc: Ergus , juri@linkov.net, emacs-devel@gnu.org > From: martin rudalics > Date: Wed, 9 Oct 2019 20:12:44 +0200 > > So the idea was that redisplay eventually will set > tool_bar_redisplayed after calculating the tool bar height and that > value is copied to tool_bar_resized to make sure this frame never gets > resized again when the tool bar changes. So these resets should > handle only this initial resize operation and no others. Ah, so these are one-off flags, and not indications of the resize, i.e. they are not supposed to be sensitive to, say, when a tool bar becomes too large for one line and needs two, is that so? > > The real motivation for these questions is the problem with > > redisplaying the frame when tab-bar is turned on by "C-x 6 f", but > > since the tab-bar code was simply copied from the tool-bar code, I > > find myself wondering about the latter, and hope you can show me the > > light there. > > As you mentioned earlier, tab bars are initially off and the tool bar > is on. Maybe that's the cause of the problem. No, I think the cause of the problem is that we have no equivalent of "C-x 6 f" that turns on the tool bar as a side effect of a command that displays a buffer. But that's a guess, because I've just established with Jimmy's help that even the call to redraw_frame doesn't cause the expected effect. Which completely stumps me, and I need to think about it before I come with more ideas (_if_ I come with more ideas)...