unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 'Michael Heerdegen' <michael_heerdegen@web.de>,
	11756@debbugs.gnu.org, 'Andreas Schwab' <schwab@linux-m68k.org>
Subject: bug#11756: 24.1.50; mode-line string and properties
Date: Mon, 23 Aug 2021 17:00:14 +0200	[thread overview]
Message-ID: <87k0kcqk8x.fsf@gnus.org> (raw)
In-Reply-To: <BC9070D9D6AF4164BC5103826C482BBF@us.oracle.com> (Drew Adams's message of "Thu, 21 Jun 2012 07:01:33 -0700")

"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	other threads:[~2021-08-23 15:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-21  0:27 bug#11756: 24.1.50; mode-line string and properties Drew Adams
2012-06-21  1:20 ` Michael Heerdegen
2012-06-21  7:24   ` Andreas Schwab
2012-06-21 14:01     ` Drew Adams
2021-08-23 15:00       ` Lars Ingebrigtsen [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k0kcqk8x.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=11756@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=michael_heerdegen@web.de \
    --cc=schwab@linux-m68k.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).