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: Mon, 04 Jun 2007 16:40:39 +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 1180971716 15881 80.91.229.12 (4 Jun 2007 15:41:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Jun 2007 15:41:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 04 17:41:54 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 1HvEgq-0004TC-Nv for ged-emacs-devel@m.gmane.org; Mon, 04 Jun 2007 17:41:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvEgq-0005jm-2q for ged-emacs-devel@m.gmane.org; Mon, 04 Jun 2007 11:41:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvEgi-0005db-IH for emacs-devel@gnu.org; Mon, 04 Jun 2007 11:41:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvEge-0005Vw-QD for emacs-devel@gnu.org; Mon, 04 Jun 2007 11:41:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvEge-0005VQ-Ke for emacs-devel@gnu.org; Mon, 04 Jun 2007 11:41:40 -0400 Original-Received: from ppsw-3.csi.cam.ac.uk ([131.111.8.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HvEgd-0000P3-Ds; Mon, 04 Jun 2007 11:41:39 -0400 X-Cam-SpamDetails: Not scanned X-Cam-AntiVirus: No virus found X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Original-Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]:41364) by ppsw-3.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.153]:587) with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES256-SHA:256) id 1HvEgK-0001sI-BI (Exim 4.63) (return-path ); Mon, 04 Jun 2007 16:41:20 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAGFBMVEUzRVhbQj4eZqO6SjnT eWpxnMetm5b6/PmidmqrAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1F B9cBBwMLBfKABCMAAAFoSURBVCjPtZI9a8MwEIaFoc7aYDdelQMna0Em3tsSr0XUeE2Q6a22a+v+ fk8fSSBkbDUI6dHpfe9OEvRgiD+ApqKPJgJeB6iUUXWESjUe/ig38AJrhqqvaU2nTIXbNvOQ40fe qdry4kyGoVWsfCQalXpHnJGM01wjWdYbMlXNFdsZDO69m9aqNqxEJqTEgbM5OF7wlEfIoll1Ked4 LbM5X2EdILLokEdmI8z7g5cKED0cuTC930TYhy7ZDekkXVGw/L60TguJePPxcJF48lpsSUWEA/Ju jGFNgJOXc4Hz7TmAdBeu5Ve4AEjOi2/2jfd3cAJZ+IbNrvdjgBZY01b+HTuG3cLws6BJZqVOj/pp T0OqVwx3rFq+QmJwx3loK5JSLEhDIt62+mtC2C+SrAUxEbV6C6v2BRbd6pILBKFpepKZJHgGgrKF sptSUUoczpwg2pQ7ZH1tgs0ou/917mzz6Cs2//C978cv5l07L02orIEAAAAASUVORK5CYII= In-Reply-To: (Eli Zaretskii's message of "Mon, 04 Jun 2007 00:05:03 +0300") User-Agent: Gnus/5.110007 Emacs 23 (20070531) MULE/6.0 (HANACHIRUSATO) Fedora 7 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 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:72210 Archived-At: 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. regards, -- Leo (GPG Key: 9283AA3F)