emacs-devel
[Top][All Lists]
Advanced

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

Re: Face text property for `minor-mode-alist` item.


From: Narendra Joshi
Subject: Re: Face text property for `minor-mode-alist` item.
Date: Mon, 28 Dec 2020 00:46:23 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Narendra Joshi <narendraj9@gmail.com> writes:
>
>> Is this a bug in Emacs or is this expected behaviour?
>
> It's expected (but possibly under-documented?) behaviour -- the mode
> line code tries to be super-efficient, and doesn't allow text to have
> different text properties.  As you've discovered, it only uses the text
> property from the first character, and uses that over the entire text
> fragment.

Thanks for clarifying this. I did check the Emacs Lisp manual entries
for mode line constructs and couldn't find any documentation about this.

> You have to use the special (:propertize ...) mode line constructs (and
> chop up the text) to get more fine-grained text properties in the mode
> line.

Best regards,
-- 
Narendra Joshi



reply via email to

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