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

From: Andreas Schwab <[email-masked]>
Date: Thu, 21 Jun 2012 09:24:18 +0200

Michael Heerdegen <[email-masked]> writes:

> to see with a short recipe that there is something wrong, try this in
> emacs -Q:
>
>   (setq A-red_B-C
>         '(:eval (concat "A" (propertize "B" 'face 'font-lock-warning-face) "C"))

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.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."