help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

thanks... RE: faces v. frames


From: Chris Seberino
Subject: thanks... RE: faces v. frames
Date: Mon, 3 Dec 2001 19:36:58 -0800
User-agent: Mutt/1.2.5i

Jay,

Thanks for the explanation.  To recap if I may: some colors are related to
"frames" and others are related to "faces".  The face related
color settings are automatically universal while the frame related ones
are NOT automatically universal.  

It just so happens that modeline and mouse dragging
are associated with "faces".  That makes sense.

Sincerely,

Chris

On Mon, Dec 03, 2001 at 04:40:18PM -0600, Bingham, Jay wrote:
> Chris,
> 
> I just did some experimentation on my emacs running under Win2000, not
> that that should make any difference other than that is where I have
> colors defined.  Here is what I found.  If I create a new frame it is
> not created with the same background/foreground colors as the initial
> frame.  The region colors however are the same in both frames, i.e. the
> colors I defined in my .emacs.
> I went to the info pages and the emacs lisp reference and read what they
> say about the default-frame-alist and about frame parameters.
> When a new frame is created emacs assigns values to the frame-local
> variables from parameters to the make-frame function, then from the
> default-frame-alist, and finally from the X resources.  There is a long
> list of frame-local variables, there are five that define the colors of
> the frame: foreground-color, background-color, mouse-color, cursor-color
> and border-color.  Once the frame is created these variables can be set
> for an individual frame with the setq expression by executing the
> expression in the frame (which is what my .emacs does in the initial
> frame).  There is also a hook variable that can specify a function to
> run after a frame is created which can be used to modify frame
> variables.
> There is also an initial-frame-alist that can be used to make the first
> frame that is created by emacs different than the subsequent frames,
> which use the default-frame-alist.
> Since the region colors are not associated with a frame they are
> automatically universal.  
> So there you have the explanation.
> 
> J_)
> C_)ingham
> .    COMPAQ NonStop Integrity Systems
> .    Austin, TX
> . Language is the apparel in which your thoughts parade in public.
> . Never clothe them in vulgar and shoddy attire. -Dr. George W. Crane-
> 
>  -----Original Message-----
> From:         Chris Seberino [mailto:address@hidden 
> Sent: Saturday, 01 December, 2001 1:34 a
> To:   Bingham, Jay
> Cc:   address@hidden
> Subject:      Re: How change color of 1. "mouse dragged" text & 2.
> mode line text????
> 
> Jay
> 
> Thanks again! I tried your commands and now it looks great!!!
> Actually, your commands worked *better* than I imagined they
> *could* and I wanted to ask a question about that if you don't mind....
> 
> All of my color settings had to be put into "default-frame-alist"
> so that they showed up in *all* windows/modes/etc.....
> 
> (setq default-frame-alist 
>    '((cursor-color . "red") (background-color . "black")
> (foreground-color . "khaki")) )
> 
> However, YOUR commands seem to be universal without having
> to be stuffed into an "alist" like above.  How come Emacs
> likes your color commands and makes them universal but
> my commands like "background-color" are not universal if
> I set them with set- command like you did?????
> 

-- 
=======================================================
| Dr. Christian Seberino  || (619) 553-7940 (office1) |
| SPAWARSYSCEN 2733       || (619) 553-2564 (office2) |
| 53560 HULL ST           || (619) 553-6307 (fax)     |
| SAN DIEGO CA 92152-5001 || address@hidden |
=======================================================



reply via email to

[Prev in Thread] Current Thread [Next in Thread]