From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johannes Weiner Newsgroups: gmane.emacs.devel Subject: Re: [BUG] Dark/bright face detection problem Date: Fri, 28 Sep 2007 17:46:29 +0200 Message-ID: <20070928154629.GA8089@saeurebad.de> References: <20070928143833.GC26384@saeurebad.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1712631829==" X-Trace: sea.gmane.org 1190994425 4876 80.91.229.12 (28 Sep 2007 15:47:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Sep 2007 15:47:05 +0000 (UTC) To: Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 28 17:47:01 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 1IbI39-0006tt-8n for ged-emacs-devel@m.gmane.org; Fri, 28 Sep 2007 17:46:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbI35-0000Vo-Kj for ged-emacs-devel@m.gmane.org; Fri, 28 Sep 2007 11:46:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IbI32-0000VX-K7 for emacs-devel@gnu.org; Fri, 28 Sep 2007 11:46:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IbI31-0000VJ-4A for emacs-devel@gnu.org; Fri, 28 Sep 2007 11:46:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbI30-0000VG-T3 for emacs-devel@gnu.org; Fri, 28 Sep 2007 11:46:34 -0400 Original-Received: from saeurebad.de ([85.214.36.134]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IbI30-00080Y-EE for emacs-devel@gnu.org; Fri, 28 Sep 2007 11:46:34 -0400 Original-Received: by saeurebad.de (Postfix, from userid 1000) id A544D2F0146; Fri, 28 Sep 2007 17:46:29 +0200 (CEST) Mail-Followup-To: Emacs development discussions In-Reply-To: <20070928143833.GC26384@saeurebad.de> User-Agent: Mutt/1.5.16 (2007-06-11) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:79997 Archived-At: --===============1712631829== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 --=20 3BD8 AF56 11AF 205C 9DB6 B10F 76F1 0634 71A4 DCA0 --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFG/SHVdvEGNHGk3KARAi6GAJ9x7r8lkShGHuID4eiocFsVvI+qVwCdHFth hAkACOQ0V6e94sJ23X5afo8= =ZnOq -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM-- --===============1712631829== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1712631829==--