GNU bug report logs -
#6777
23.2; The highlight face changes foreground
Previous Next
Reported by: Uday S Reddy <u.s.reddy <at> cs.bham.ac.uk>
Date: Mon, 2 Aug 2010 09:38:01 UTC
Severity: minor
Tags: notabug
Found in version 23.2
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> The definition of the highlight face only sets the background color.
> But I see that it is changing the foreground as well.
>
> Suppose you do (set-face-foreground 'bold "blue") and run the
> mouse over
> the bold items in a *Apropos* window, you would notice that the
> foreground changes to black.
>
> If you do (set-face-underline 'bold t) and run the mouse, you would
> notice the underlining disappear.
>
> Is this a bug or a feature?
I'm no expert on this, but this is the way Emacs has always behaved.
This is not about the `highlight' face or any other face. It is about
`mouse-face' vs `face'.
The `mouse-face' text property is a separate property from the `face' property.
Each has a face as its value. You see one or the other face at any given time,
not a combination of the two. If `mouse-face' has the value `highlight'
(highlight face), then that is the face you see when you mouseover the text.
HTH.
This bug report was last modified 14 years and 11 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.