Subject: Re: bug#11756: 24.1.50; mode-line string and properties

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 23 Aug 2021 17:00:14 +0200

"Drew Adams" <[email-masked]> writes:

>> The property merging done by display_mode_element is very 
>> simple-minded.  Only the properties on the first character
>> are used, and it is assumed that they are placed over the
>> whole string.
>
> So I guess that's what needs to be fixed then.

This wasn't documented before, but it's been made explicit recentlyish.
The reason for this is because we want to the mode lines to be very fast
(and create as little garbage as possible).

If you want to have different text properties over stretches of a
string, you have to chop the string up and use the :propertize mode line
construct.

So I'm closing this bug report.

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