RE: New Frame issues
Kukkadapu Praveen-W50881 <[email protected]> Wed, 20 Oct 2004 10:09:10 -0500
| Newsgroups | gmane.emacs.xemacs.general |
|---|---|
| Message-ID | <B558064AB5A5D711B74600065BF1B93F0D76E31D@il93exm04> |
Actually I was wrong about the last paragraph. I am always seeing only one xemacs window, but with your workaround, the color coding scheme is weird with the frame that comes up when I start xemacs from prompt. -----Original Message----- From: Kukkadapu Praveen-W50881 Sent: Wednesday, October 20, 2004 10:06 AM To: 'Markus Heiser' Subject: RE: New Frame issues Bingo!!!! You are right on the target in that I have a black background set in my xemacs. But even when I launch a new frame, the new frame is still in black background. The problem is with the coloring of the different sections, say color of comments in a C/C++ file or keywords etc. I tried your workaround, and its actually launching a xemacs with the weird color scheme even for the first frame. I guess that is because the good frame is being deleted by delete-frame and all I am being left by is the new frame with weird color scheme. When I inserted that (new-frame)/(delete-frame) after the setting of C++ fonts in my .emacs, I am getting two frames, one is empty, and the other one is launched with the file I opened xemacs, but is with the weird color coding scheme. I guess this is probably some kind of bug in xemacs (????) -----Original Message----- From: Markus Heiser [mailto:[email protected]] Sent: Wednesday, October 20, 2004 1:52 AM To: Kukkadapu Praveen-W50881 Cc: [email protected] Subject: Re: New Frame issues 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 ------------------------------------------------------------