Re: New Frame issues
Markus Heiser <[email protected]> Wed, 20 Oct 2004 08:51:50 +0200
| Newsgroups | gmane.emacs.xemacs.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Praveen Normaly I can observe this behavior, when I use a dark (may be a black) background color in XEmacs but a bright (may be a white) background color in my Window-Desktop Settings. Codings in XEmacs are colorized by faces, where a face can define a color for a bright and a color for a dark background, this is the change in colorizing you observed when opening a new frame. When XEmacs starts (comes up), there is no XEmacs-Background color (black), so XEmacs takes a look at the background color of the Windows-Desktop (white). While this XEmacs decided to use the 'bright' definitions of the faces. After the basic initialisation of the XEmacs is finished, the XEmacs read your .emacs file where you defined a black background (but this to late). While the XEmacs discover only at the time of the creation of a (new) frame the bright/dark background, there is no chance to switch from bright to dark background in one frame, without using the 'wrong' colors. I don't know a way to reinit the current frame, so the only way I know to fix this problem is nothing more than an ugly workaround: ... create a new frame and delete the old (current) frame in your .emacs after you have change the background color. <SNIP> ------------------------ ;; initialize frame ;; =============== (new-frame) (delete-frame) <SNIP> ------------------------ Kukkadapu Praveen-W50881 wrote: > > Hi, > I have diffecrent color codings for C/C++ code, set in my .emacs file > and it works just fine when I open a C/C++ file. When I launch a "new > frame" from this frame, all the color codings are screwed up in the new > frame and it follows some weird color coding scheme. I am not sure why > it hapens. any idea? > > Thanks, > Praveen > -- Mit freundlichem Gruss -- M.Heiser -- ------------------------------------------------------------ Markus Heiser Dipl. Ing. Physiktechnik (FH) Tel. : +49 421 20153 0 CONTACT Software GmbH (Abt.SE) FAX : +49 421 20153 41 Wiener Str. 1-3 eMail: [email protected] D - 28359 Bremen http://www.contact.de ------------------------------------------------------------