I did a little more investigation and I noticed that the tty frame
will inherit the faces set for X and the X frame will inherit the
faces set for the tty.
I would be more than happy to debug this problem but I just don't know
where to start. Can somebody give me a pointer as to where to look?
When a new frame (tty or X) is created, what function gets called?
Maybe can I trace through that or something.
Thanks,
Dave
On Thu, Oct 29, 1998 at 10:37:44AM -0800, David Wang wrote:
Here is a weird one with xemacs-21.0-b57 under solaris 2.5.1:
I start up a TTY xemacs server session with gnuserv-start.
I then use gnuclient to open up one X frame. The face colors are the
ones that I've specified in my .emacs file and correct. If I then use
"C-x 5 b" to open up another x frame, the 2nd X frame face colors are
all screwed up.
If I do the reverse, ie start up a X xemacs server, and then do
"gunclient -nw" to create a tty frame and then from within the tty
frame do a "C-x 5 b", my tty colors become screwed up.
Here is how I set up my faces in my .emacs. I have one set of faces
for my tty frames and another one for the x frames. I'm wondering if
thats the problem and if there is a solutions?
-- .emacs --
(custom-set-variables
'(paren-mode (quote paren) nil (paren))
'(column-number-mode t)
'(lazy-shot-mode t nil (lazy-shot))
'(visible-bell t)
'(toolbar-visible-p nil)
'(scrollbars-visible-p nil)
'(line-number-mode t)
'(font-lock-mode t nil (font-lock)))
(custom-set-faces
'(info-node ((((type x)) (:foreground "yellow")) (((type tty))
(:foreground "brightyellow"))))
'(red ((((type x)) (:foreground "orange")) (((type tty)) (:foreground
"brightmagenta"))))
'(font-lock-string-face ((((type x)) (:foreground "moccasin")) (((type
tty)) (:foreground "brightwhite"))))
'(font-lock-reference-face ((((type x)) (:foreground "medium spring
green")) (((type tty)) (:foreground "brightgreen"))))
'(custom-group-tag-face ((((type x)) (:foreground "cyan")) (((type tty))
(:foreground "brightcyan"))))
'(custom-variable-tag-face ((((type x)) (:foreground "yellow")) (((type
tty)) (:foreground "brightyellow"))))
'(font-lock-doc-string-face ((((type x)) (:foreground "thistle")) (((type
tty)) (:foreground "magenta"))))
'(custom-group-tag-face-1 ((((type x)) (:foreground "pink")) (((type tty))
(:foreground "brightred"))))
'(modeline-buffer-id ((((type x)) (:foreground "white" :background
"#c06077")) (((type tty)) (:foreground "white" :background
"yellow"))))
'(font-lock-preprocessor-face ((((type x)) (:foreground "medium spring
green")) (((type tty)) (:foreground "brightgreen"))))
'(modeline-mousable ((((type x)) (:foreground "white" :background
"#c06077")) (((type tty)) (:foreground "white" :background
"yellow"))))
'(font-lock-variable-name-face ((((type x)) (:foreground "moccasin"))
(((type tty)) (:foreground "brightwhite"))))
'(paren-match ((((type x)) (:foreground "cyan" :background
"blue4")) (((type tty)) (:foreground "brightcyan" :background
"blue"))))
'(modeline-mousable-minor-mode ((((type x)) (:foreground "white"
:background "#c06077")) (((type tty)) (:foreground "white" :background
"yellow"))))
'(custom-face-tag-face ((((type x)) (:foreground "yellow")) (((type tty))
(:foreground "brightyellow"))))
'(custom-state-face ((((type x)) (:foreground "moccasin")) (((type tty))
(:foreground "brightwhite"))))
'(font-lock-keyword-face ((((type x)) (:foreground "yellow")) (((type
tty)) (:foreground "brightyellow"))))
'(font-lock-type-face ((((type x)) (:foreground "pink")) (((type tty))
(:foreground "brightred"))))
'(bold-italic ((t nil)) t)
'(list-mode-item-selected ((((type x)) (:foreground "yellow" :background
"firebrick")) (((type tty)) (:foreground "brightyellow" :background
"cyan"))))
'(italic ((t nil)) t)
'(font-lock-comment-face ((((type x)) (:foreground "orange")) (((type
tty)) (:foreground "brightmagenta"))))
'(font-lock-function-name-face ((((type x)) (:foreground "cyan")) (((type
tty)) (:foreground "brightcyan"))))
'(isearch ((((type x)) (:foreground "yellow" :background
"firebrick")) (((type tty)) (:foreground "brightyellow" :background
"cyan"))))
'(highlight ((((type x)) (:foreground "black" :background
"darkseagreen2")) (((type tty)) (:foreground "brightyellow"
:background "cyan"))))
'(modeline ((((type x)) (:foreground "white" :background
"#c06077")) (((type tty)) (:foreground "white" :background
"yellow"))))
'(zmacs-region ((((type x)) (:foreground "yellow" :background
"firebrick")) (((type tty)) (:foreground "brightyellow" :background
"cyan")))))
--
David H. Wang
(408) 525-2720