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: Sun, 01 Mar 2020 18:12:06 +0200 Message-ID: <83tv38yrzd.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> <8336avgjn4.fsf@gnu.org> <87blphrulz.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="69328"; 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 Sun Mar 01 17:13:11 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 1j8RDL-000Hwh-59 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Mar 2020 17:13:11 +0100 Original-Received: from localhost ([::1]:49512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8RDJ-0006uM-TM for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Mar 2020 11:13:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50757) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8RDD-0006u4-53 for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2020 11:13:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j8RDC-0005xO-72 for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2020 11:13:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59134) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j8RDC-0005xK-3u for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2020 11:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j8RDB-0006dr-Ue for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2020 11:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Mar 2020 16:13:01 +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.158307914325454 (code B ref 39649); Sun, 01 Mar 2020 16:13:01 +0000 Original-Received: (at 39649) by debbugs.gnu.org; 1 Mar 2020 16:12:23 +0000 Original-Received: from localhost ([127.0.0.1]:36874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8RCZ-0006cU-KC for submit@debbugs.gnu.org; Sun, 01 Mar 2020 11:12:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8RCW-0006c9-OY for 39649@debbugs.gnu.org; Sun, 01 Mar 2020 11:12:21 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j8RCR-0005o5-8E; Sun, 01 Mar 2020 11:12:15 -0500 Original-Received: from [176.228.60.248] (port=1767 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j8RCQ-00027H-2S; Sun, 01 Mar 2020 11:12:14 -0500 In-Reply-To: <87blphrulz.fsf@mail.linkov.net> (message from Juri Linkov on Sat, 29 Feb 2020 23:44:56 +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:176725 Archived-At: > From: Juri Linkov > Cc: joca.bt@gmail.com, 39649@debbugs.gnu.org > Date: Sat, 29 Feb 2020 23:44:56 +0200 > > > Why would we need that? The related display code is in C, so we never > > needed to expose this to Lisp. > > format-mode-line already exposes it, but fails to properly > handle its arg FACE. So you are saying that we already have the API exposed to Lisp, but it (format-mode-line) doesn't work well? > >> 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". > > Do you see the same button styles with the faces tab-line-tab-inactive and > tab-line-tab-current as in the case above like they are on the real tab-line? > These faces are lost when the arg FACE is specified. I don't think this is a bug, the code behaves as intended. It's just that its intent might be not what you expect, and the available documentation doesn't help to expect what the code does. The doc string says, inter alia: Optional second arg FACE specifies the face property to put on all characters for which no face is specified. But what it really means is that text produced by the various %-constructs will have FACE if the %-constructs don't provide a face. In your case, you supply the function with a fixed string, so specifying FACE overrides the faces you have there, see store_mode_line_string (which is called in this case with PROPS set to nil). At this point let me turn the table and ask why did you need to pass FACE to format-mode-line in your case? What did you want to achieve?