GNU bug report logs - #11756
24.1.50; mode-line string and properties

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Thu, 21 Jun 2012 00:32:02 UTC

Severity: normal

Tags: wontfix

Found in version 24.1.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 'Michael Heerdegen' <michael_heerdegen <at> web.de>, 11756 <at> debbugs.gnu.org, 'Andreas Schwab' <schwab <at> linux-m68k.org>
Subject: bug#11756: 24.1.50; mode-line string and properties
Date: Mon, 23 Aug 2021 17:00:14 +0200
"Drew Adams" <drew.adams <at> 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




This bug report was last modified 3 years and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.