emacs-devel
[Top][All Lists]
Advanced

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

Re: [BUG] Dark/bright face detection problem


From: Johannes Weiner
Subject: Re: [BUG] Dark/bright face detection problem
Date: Fri, 28 Sep 2007 17:46:29 +0200
User-agent: Mutt/1.5.16 (2007-06-11)

Whoops,

On Fri, Sep 28, 2007 at 04:38:33PM +0200, Johannes Weiner wrote:
> $ cat broken.el
> (set-background-color "gray20")
> (set-foreground-color "white")
> (set-default-font "lucidasans-10")

This is wrong.  It must be:

(set-default-font ...)
(set-background-color ...)
(set-foreground-color ...)

The important part is, that (set-default-font ...) is called _before_ the
color settings.

Because in the working scenario, `set-default-font' triggers the face
dark/bright color updating to be done.  So the face stays dark when
`set-default-font' is not called after `set-background-color'.

        Hannes

-- 
3BD8 AF56 11AF 205C 9DB6  B10F 76F1 0634 71A4 DCA0

Attachment: signature.asc
Description: Digital signature


reply via email to

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