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 17:21:15 +0300 Message-ID: <83k19euhic.fsf@gnu.org> References: <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> <83o8yqumdl.fsf@gnu.org> <20191009135539.c2i6ob52td6p34ab@Ergus> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="268406"; mail-complaints-to="usenet@blaine.gmane.org" Cc: michael_heerdegen@web.de, emacs-devel@gnu.org To: Ergus , juri@linkov.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 09 21:16:12 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 1iIHRT-0017gp-Sh for ged-emacs-devel@m.gmane.org; Wed, 09 Oct 2019 21:16:12 +0200 Original-Received: from localhost ([::1]:54754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIHRR-00079Q-FX for ged-emacs-devel@m.gmane.org; Wed, 09 Oct 2019 15:16:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60357) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iICqO-0000yb-E9 for emacs-devel@gnu.org; Wed, 09 Oct 2019 10:21:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iICqM-0007Hf-GN; Wed, 09 Oct 2019 10:21:34 -0400 Original-Received: from [176.228.60.248] (port=4259 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iICqL-0007wL-Pq; Wed, 09 Oct 2019 10:21:34 -0400 In-reply-to: <20191009135539.c2i6ob52td6p34ab@Ergus> (message from Ergus on Wed, 9 Oct 2019 15:55:39 +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:240786 Archived-At: > Date: Wed, 9 Oct 2019 15:55:39 +0200 > From: Ergus > Cc: michael_heerdegen@web.de, juri@linkov.net, emacs-devel@gnu.org > > >If you set a breakpoint in this fragment from clear_garbaged_frames: > > > > if (FRAME_VISIBLE_P (f) && FRAME_GARBAGED_P (f)) > > { > > if ((f->resized_p || f->tab_bar_resized) > > /* It makes no sense to redraw a non-selected TTY > > frame, since that will actually clear the > > selected frame, and might leave the selected > > frame with corrupted display, if it happens not > > to be marked garbaged. */ > > && !(f != sf && (FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f)))) > > redraw_frame (f); <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > else > > clear_current_matrices (f); > > > >does the breakpoint fire after you type "C-x 6 f"? > > Yes: > > Thread 1 "emacs" hit Breakpoint 1, clear_garbaged_frames () at ../../src/xdisp.c:11805 > 11805 redraw_frame (f); So you are saying that the call to redraw_frame does nothing in your case? It's supposed to clear out the entire X window and then cause its redisplay... What about disabling double buffering, does it help in any way? And what about the question I asked earlier about the last master build you had that didn't have this problem? do you have an answer? TIA. Anyway, Juri, I'm at the end of my wits (which evidently are too short to begin with) regarding this problem. It is bad enough to have to debug this without being able to reproduce the problem on my machine, and in addition, I don't have a clear understanding how this is supposed to work. AFAIU, you just copied the code from the tool-bar code, so it's possible that you don't understand that either. Maybe Martin will be able to explain how the tool-bar related flags are supposed to work, and maybe that will help me see the light. But I'm not holding my breath, given that even the call to redraw_frame doesn't seem to do what it's supposed to. Do you see the problem described by Jimmy on your system? If so, are you able to debug it on your system (with my help, if you need it)? If not, would someone else who sees the problem please try debugging it?