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: Same 'face' spec initialized to different values for x and terminal Date: Mon, 04 Jun 2007 09:16:43 -0700 Message-ID: <200706041616.l54GGhQO029221@oogie-boogie.ics.uci.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1180973980 24796 80.91.229.12 (4 Jun 2007 16:19:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Jun 2007 16:19:40 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Leo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 04 18:19:39 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 1HvFHP-0005Er-81 for ged-emacs-devel@m.gmane.org; Mon, 04 Jun 2007 18:19:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvFHO-0002VW-Ik for ged-emacs-devel@m.gmane.org; Mon, 04 Jun 2007 12:19:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvFHI-0002U0-32 for emacs-devel@gnu.org; Mon, 04 Jun 2007 12:19:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvFHG-0002T2-87 for emacs-devel@gnu.org; Mon, 04 Jun 2007 12:19:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvFHG-0002Ss-2A for emacs-devel@gnu.org; Mon, 04 Jun 2007 12:19:30 -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 1HvFHC-0006EU-3g; Mon, 04 Jun 2007 12:19:26 -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 l54GGhQO029221; Mon, 4 Jun 2007 09:16:43 -0700 (PDT) In-Reply-To: (Leo's message of "Mon\, 04 Jun 2007 16\:40\:39 +0100") Original-Lines: 44 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-0.763, required 5, autolearn=disabled, ALL_TRUSTED -1.44, J_CHICKENPOX_62 0.60, TW_DB 0.08) 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:72213 Archived-At: Leo writes: > Dear Eli, > > ----- 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. > > > > Try setting frame-background-mode to 'light in the xterm case, and I > > think you will have the colors that you want. > > There are altogether 5 faces defined in dictem.el. > > With "emacs -nw -q -l dictem.el" in xterm, two of them initialize to > light background values and three of them to dark background values: > > .----------------------------------+-------. > | dictem-reference-definition-face | light | > |----------------------------------+-------| > | dictem-reference-m1-face | light | > |----------------------------------+-------| > | dictem-reference-m2-face | dark | > |----------------------------------+-------| > | dictem-reference-dbname-face | dark | > |----------------------------------+-------| > | dictem-database-description-face | dark | > `----------------------------------+-------' > > Whatever emacs assumes for its background mode, something is wrong. I > hope someone can see this problem and fix it. This seems to work properly on the multi-tty branch. That branch has a few changes for initializing faces on different frames. If nobody looks at this issue now, it will hopefully be fixed when the multi-tty branch is merged.