New modeline glitches under cygwin
Aidan Kehoe
kehoea at parhasard.net
Sat Nov 14 12:10:27 EST 2009
[Replying to an ancient mail following a commit I just did.]
Ar an cúigiú lá de mí Márta, scríobh Didier Verna:
> When trying to instantiate the background for the modeline-mousable face
> (I mean, *after* my patch), the instantiation tries the modeline face
> (which fails because there's only a fallback). Then, the fallback for
> the modeline-mousable face is tried in turn, and leads to the white
> color (the global=((mswindows) . "white") part).
>
> What looks wrong to me is that the modeline-mousable background color's
> fallback should be the same as the one for the modeline-face. I see no
> reason it would be different.
The reason they’re different is that the modeline face was created in C, and
its fallbacks were set there to reflect the attributes of the gui-element
face, while modeline-mousable was created from Lisp, and *all* faces created
from Lisp have their fallbacks set to reflect the attributes of the default
face.
One way to definitively address this problem would be to move
set-face-parent to C, and have it initialise specifier fallbacks to reflect
the specifier fallbacks of the parent face. (Lisp can’t change specifier
fallbacks).
> I don't have windows anywhere near me but I'll try to investigate.
--
“Apart from the nine-banded armadillo, man is the only natural host of
Mycobacterium leprae, although it can be grown in the footpads of mice.”
-- Kumar & Clark, Clinical Medicine, summarising improbable leprosy research
More information about the XEmacs-Beta
mailing list