From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: Same 'face' spec initialized to different values for x and terminal Date: Sun, 03 Jun 2007 22:20:20 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1180905675 19023 80.91.229.12 (3 Jun 2007 21:21:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Jun 2007 21:21:15 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 03 23:21:13 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 1HuxVh-0006ms-CG for ged-emacs-devel@m.gmane.org; Sun, 03 Jun 2007 23:21:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HuxVg-0006DY-8I for ged-emacs-devel@m.gmane.org; Sun, 03 Jun 2007 17:21:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HuxVc-0006DB-Cq for emacs-devel@gnu.org; Sun, 03 Jun 2007 17:21:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HuxVa-0006Cj-QA for emacs-devel@gnu.org; Sun, 03 Jun 2007 17:21:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HuxVa-0006Ca-GR for emacs-devel@gnu.org; Sun, 03 Jun 2007 17:21:06 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HuxVa-0008Ec-61 for emacs-devel@gnu.org; Sun, 03 Jun 2007 17:21:06 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HuxVU-0000m9-N3 for emacs-devel@gnu.org; Sun, 03 Jun 2007 23:21:00 +0200 Original-Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Jun 2007 23:21:00 +0200 Original-Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Jun 2007 23:21:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: sl392.st-edmunds.cam.ac.uk Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= User-Agent: Gnus/5.110007 Emacs 23 (MULE 6.0; 2007-05-31) Fedora 7 (gnu/linux) Cancel-Lock: sha1:Vtnjn8Um3h8NQtzqJFFrJvJ/mjY= 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:72141 Archived-At: ----- Eli Zaretskii (2007-06-03) wrote:----- >> From: Leo >> Date: Sun, 03 Jun 2007 21:56:18 +0100 >> >> *NB*: emacs has a light background in both x and xterm. Thus it looks >> very weird the aforementioned face is initialized to the dark >> background value. > > Emacs cannot determine the background color on a text terminal, so it > assumes something. Without -nw, Emacs queries the window system about > the default color, so it can adjust its background mode. I understand this. But all other faces are correctly set for example, those in org.el. If I set the spec to: (defface dictem-database-description-face '((((background light)) (:weight bold :foreground "darkblue")) (((background dark)) (:weight bold :foreground "white"))) "The face that is used for displaying a database description" :group 'dictem-faces) It will initialize correctly in both xterm and X. Seems there is a bug in Emacs. > Try setting frame-background-mode to 'light in the xterm case, and I > think you will have the colors that you want. -- Leo (GPG Key: 9283AA3F)