>> In the shell buffer the current prompt has its own face,
>> comint-highlight-prompt. After a command is entered, the new prompt has this
>> face, but the face for the old prompt is relegated to font-lock-string-face.

> You must have a prompt that triggers one of the various font-lock
> patterns, causing font-lock to over-write the correct prompt face.

> Older (before 2002 sometime) versions used overlays instead of
> text-properties for all prompt faces instead of just the last one,
> which were resistant to being overwritten.

> I'm not sure about how to make font-lock not match areas with certain
> properties attached; Stefan?

In the font lock keywords, don't forget that the "face" specification of
each keyword is an expression.  So you can just use an expression like (if
(get-text-property (point) 'toto) nil 'the-face).


        Stefan


_______________________________________________
Emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to