From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#39649: 27.0.60; tab-line doesn't scroll Date: Fri, 28 Feb 2020 11:12:47 +0200 Message-ID: <8336avgjn4.fsf@gnu.org> References: <87lfp0lsun.fsf@mail.linkov.net> <87imk3a5sa.fsf@mail.linkov.net> <87h7zn4d99.fsf@mail.linkov.net> <87r1yoopgp.fsf@mail.linkov.net> <87d0a8bu5c.fsf@gmail.com> <87y2sup4c2.fsf@mail.linkov.net> <87h7zg7vjx.fsf@mail.linkov.net> <87pne2ilur.fsf@mail.linkov.net> <871rqhj5x2.fsf@mail.linkov.net> <87imjshqkz.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="91348"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39649@debbugs.gnu.org, joca.bt@gmail.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 28 10:14:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1j7bim-000Nfs-11 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Feb 2020 10:14:12 +0100 Original-Received: from localhost ([::1]:43910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7bil-0002CK-2e for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Feb 2020 04:14:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49111) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7bid-0002By-Hf for bug-gnu-emacs@gnu.org; Fri, 28 Feb 2020 04:14:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j7bic-0005wT-FQ for bug-gnu-emacs@gnu.org; Fri, 28 Feb 2020 04:14:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54688) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j7bic-0005wN-C5 for bug-gnu-emacs@gnu.org; Fri, 28 Feb 2020 04:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j7bic-0000zt-82 for bug-gnu-emacs@gnu.org; Fri, 28 Feb 2020 04:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Feb 2020 09:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39649 X-GNU-PR-Package: emacs Original-Received: via spool by 39649-submit@debbugs.gnu.org id=B39649.15828811913754 (code B ref 39649); Fri, 28 Feb 2020 09:14:02 +0000 Original-Received: (at 39649) by debbugs.gnu.org; 28 Feb 2020 09:13:11 +0000 Original-Received: from localhost ([127.0.0.1]:60661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j7bhn-0000yU-1T for submit@debbugs.gnu.org; Fri, 28 Feb 2020 04:13:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j7bhk-0000yC-R4 for 39649@debbugs.gnu.org; Fri, 28 Feb 2020 04:13:09 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j7bhf-0005US-8v; Fri, 28 Feb 2020 04:13:03 -0500 Original-Received: from [176.228.60.248] (port=2140 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j7bhe-0002tN-06; Fri, 28 Feb 2020 04:13:02 -0500 In-reply-to: <87imjshqkz.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 27 Feb 2020 01:33:00 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:176561 Archived-At: > From: Juri Linkov > Cc: Joćo Guerra , > 39649@debbugs.gnu.org > Date: Thu, 27 Feb 2020 01:33:00 +0200 > > > I suspect that the problem comes from the tab-line fontified differently > > by core and when fontified manually in the buffer. > > Eli, could you explain why there no wrapper around the C function > display_mode_element exposed to Lisp. Why would we need that? The related display code is in C, so we never needed to expose this to Lisp. I also don't understand the relation between this question and the recipes you show. > The closest function is format-mode-line but still its formatting is > different from what display_mode_element really displays in the > tab-line. Why is that a problem? format-mode-line was not intended to be used in display context. > 1. emacs -Q > 2. M-x global-tab-line-mode > > 3. C-x b test1 > 4. M-: (insert (format-mode-line (tab-line-format))) > 5. Note how the tab uses the face tab-line-tab > with released-button box style, but the tab-line > doesn't use the face tab-line I don't see tab-line-tab face, I see either tab-line-tab-inactive or tab-line-tab-current. And the button style and its mouse-sensitive behavior follows what I see on the real tab-line. But maybe I don't understand what you allude to here. What is the "tab" in this context, and what is "tab-line"? You have one inserted into buffer text and one displayed on header-line-like tab-line -- which one do you allude to here? And why do you think what is displayed is some kind of problem? > 6. C-x b test2 > 7. M-: (insert (format-mode-line (tab-line-format) 'tab-line)) > 8. Note how the the tab-line now uses the face tab-line, > but this face overrides the faces of individual tabs that > should have the face tab-line-tab with released-button box style. And here I don't understand what you mean by "overrides". > I can't find a function that would insert to the current buffer > a string formatted exactly as the tab-line displayed > above the window. Why is that needed? P.S. I did all the testing in Emacs 27.0.90, the latest emacs-27 branch. Thanks.