bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Lars Ingebrigtsen
Subject: bug#11756: 24.1.50; mode-line string and properties
Date: Mon, 23 Aug 2021 17:00:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

"Drew Adams" <drew.adams@oracle.com> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]