From: Narendra Joshi <narendraj9@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Face text property for `minor-mode-alist` item.
Date: Mon, 28 Dec 2020 00:46:23 +0100 [thread overview]
Message-ID: <87o8ieyfqo.fsf@gmail.com> (raw)
In-Reply-To: <878s9i99zw.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 27 Dec 2020 23:09:39 +0100")
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
next prev parent reply other threads:[~2020-12-27 23:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-27 15:13 Face text property for `minor-mode-alist` item Narendra Joshi
2020-12-27 22:09 ` Lars Ingebrigtsen
2020-12-27 23:46 ` Narendra Joshi [this message]
2020-12-28 1:19 ` Lars Ingebrigtsen
2020-12-28 1:46 ` Narendra Joshi
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o8ieyfqo.fsf@gmail.com \
--to=narendraj9@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.