From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: [BUG] Dark/bright face detection problem Date: Sat, 29 Sep 2007 09:21:39 -0700 Message-ID: <200709291621.l8TGLiw2019379@oogie-boogie.ics.uci.edu> References: <20070928143833.GC26384@saeurebad.de> <20070928154629.GA8089@saeurebad.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1191083017 8296 80.91.229.12 (29 Sep 2007 16:23:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Sep 2007 16:23:37 +0000 (UTC) To: Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 29 18:23:32 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ibf6K-0004f7-Gm for ged-emacs-devel@m.gmane.org; Sat, 29 Sep 2007 18:23:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ibf6G-0001xD-JE for ged-emacs-devel@m.gmane.org; Sat, 29 Sep 2007 12:23:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ibf6C-0001wY-6Q for emacs-devel@gnu.org; Sat, 29 Sep 2007 12:23:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ibf6B-0001vd-Ar for emacs-devel@gnu.org; Sat, 29 Sep 2007 12:23:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ibf6A-0001va-Tt for emacs-devel@gnu.org; Sat, 29 Sep 2007 12:23:22 -0400 Original-Received: from oogie-boogie.ics.uci.edu ([128.195.1.41]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ibf69-0007Ab-Q0 for emacs-devel@gnu.org; Sat, 29 Sep 2007 12:23:22 -0400 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by oogie-boogie.ics.uci.edu (8.13.6/8.13.6) with ESMTP id l8TGLiw2019379 for ; Sat, 29 Sep 2007 09:21:49 -0700 (PDT) In-Reply-To: <20070928154629.GA8089@saeurebad.de> (Johannes Weiner's message of "Fri\, 28 Sep 2007 17\:46\:29 +0200") Original-Lines: 26 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-0.84, required 5, autolearn=disabled, ALL_TRUSTED -1.44, J_CHICKENPOX_62 0.60) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-Detected-Kernel: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80022 Archived-At: Johannes Weiner writes: > 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'. This is just speculation, but it seems that the issue that you are seeing is the same as the one discussed in the long running thread "23.0.50; face-problems with multy-tty"