>>>> "dv" == Didier Verna
<verna(a)inf.enst.fr> writes: 
    dv> If you're telling us that /regardless/ of the default visual,
    dv> XEmacs should use the best one by default, I strongly
    dv> disagree. For instance, if you have PseudoColor8 by default
    dv> and force XEmacs to use TrueColor24, you'll get colormap
    dv> flashing because it needs a different one (remeber there's a
    dv> strong relation between the visual you choose and the
    dv> colormaps you can use) and user scream :-)
This isn't true in theory; O'Reilly's Xlib Programmer's Guide claims
it wasn't true in practice (even as of the X11R4 edition).  A server
can implement multiple hardware colormaps, and there will not
necessarily be any flashing when different window use different
colormaps.  (Don't ask me the implementation, I'd just quoting.)  A
server can also give you a different visual in each window.  Some of
the emulations are trivial (eg PseudoColor8 on a server that supports
PseudoColor16), some impossible (TrueColor24 on 8 bit hardware), of
course.
    mb> I don't get flashing when one app is in 8-bit PseudoColor mode
    mb> and the other app is in 24-bit TrueColor mode.  netscape
    mb> simply seems to do The Right Thing.  We should too.
My guess is that Xsun is emulating the PseudoColor with the TrueColor.
This is trivial, because you _can't_ have a private colormap with
Truecolor (I think, or is that directcolor?---OReilly's at home).  I
don't know that all combinations can be done that effectively though.
    dv> On the other hand, you can use the -visual option to change
    dv> the default visual. BTW, I'd be curious to see if XEmacs is
    dv> clever enough, when given the -visual option, to figure out
    dv> whether he needs a private colormap too...
?  Those are orthogonal options, aren't they?  If the server allows
you to specify a visual, it has to provide a compatible default
colormap.  If you decide to downgrade from TrueColor24 to PseudoColor8
(eg, for speed as Kyle mentioned), it would be _really_ obnoxious of
XEmacs to choose between ugly images (noprivate) and distracting
flashing (private) for the user.
-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences       Tel/fax: +81 (298) 53-5091
__________________________________________________________________________
__________________________________________________________________________
What are those two straight lines for?  "Free software rules."