unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Juri Linkov <juri@linkov.net>
Cc: 39649@debbugs.gnu.org, joca.bt@gmail.com
Subject: bug#39649: 27.0.60; tab-line doesn't scroll
Date: Sun, 20 Sep 2020 10:40:09 +0200	[thread overview]
Message-ID: <87k0wou9hy.fsf@gnus.org> (raw)
In-Reply-To: <87y2sjwsmz.fsf@mail.linkov.net> (Juri Linkov's message of "Mon,  02 Mar 2020 01:40:52 +0200")

Juri Linkov <juri@linkov.net> writes:

> But the bug creeps in only when there is space between tabs:
>
> (format-mode-line (concat " " (propertize "tab1" 'face
> 'tab-line-tab-current) " x"))
> #(" tab1 x" 1 5 (face tab-line-tab-current))
>
> (format-mode-line (concat " " (propertize "tab1" 'face
> 'tab-line-tab-current) " x") 'tab-line)
> #(" tab1 x" 0 1 (face tab-line) 1 5 (face tab-line) 5 7 (face tab-line))
>
> Here the face 'tab-line' overwrites the face 'tab-line-tab-current'.

The mode-line formatting machinery doesn't support having a mixture of
text properties over a single string -- for efficiency, it assumes that
the same properties are used over the entire string.  If you want
something else, you unfortunately have to use :propertize or a list of
strings.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2020-09-20  8:40 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-17 18:51 bug#39649: 27.0.60; tab-line doesn't scroll João Guerra
2020-02-17 23:03 ` Juri Linkov
2020-02-18 20:27   ` João Guerra
2020-02-18 22:39     ` Juri Linkov
2020-02-19  0:24       ` Juri Linkov
2020-02-19 20:57         ` João Guerra
2020-02-20 23:07           ` Juri Linkov
2020-02-21  1:34             ` Noam Postavsky
2020-02-22 23:52               ` Juri Linkov
2020-02-23 10:35                 ` João Guerra
2020-02-23 23:06                   ` Juri Linkov
2020-02-24 19:11                     ` João Guerra
2020-02-25 21:20                       ` Juri Linkov
2020-02-25 21:49                         ` João Guerra
2020-02-26 23:16                           ` Juri Linkov
2020-02-26 23:33                             ` Juri Linkov
2020-02-28  9:12                               ` Eli Zaretskii
2020-02-29 21:44                                 ` Juri Linkov
2020-03-01 16:12                                   ` Eli Zaretskii
2020-03-01 23:40                                     ` Juri Linkov
2020-09-20  8:40                                       ` Lars Ingebrigtsen [this message]
2020-02-27 21:13                             ` João Guerra
2020-02-27 22:37                               ` Juri Linkov
2020-02-28 18:30                                 ` João Guerra
2020-02-29 21:49                                   ` Juri Linkov
2020-03-04 17:25                                     ` João Guerra
2020-03-04 23:52                                       ` Juri Linkov
2020-03-05  8:04                                         ` João Guerra
2020-03-05 23:53                                           ` Juri Linkov
2020-09-20  8:41                                     ` Lars Ingebrigtsen
2020-10-14  6:16                                       ` Lars Ingebrigtsen
2020-02-28 13:16                         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k0wou9hy.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=39649@debbugs.gnu.org \
    --cc=joca.bt@gmail.com \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).