bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#15298: 24.3.50; Background color lost when highlighting a string


From: Stefan Monnier
Subject: bug#15298: 24.3.50; Background color lost when highlighting a string
Date: Fri, 13 Dec 2013 21:17:40 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

>>> I thought that faces were just added one onto the other, but that the
>>> problem could happen because the order is not the one we expected.
>> There's another issue at play, here: by default, a rule is only applied
>> if the matched text has not already been highlighted by an earlier rule.
> Do I understand correctly that the presented problem can't be fixed,
> then?

No, you don't.  You overlooked the fact that I said "by default".
Also you overlooked the fact that I said this depends on the order of
the various rules.

So you can either play with the order of the rules, or you can choose to
use a non-default behavior (see OVERRIDE in font-lock-keywords's
docstring).


        Stefan





reply via email to

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