From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Barzilay Newsgroups: gmane.emacs.help Subject: Re: modeline colors Date: 28 Nov 2006 23:38:16 -0500 Organization: Northeastern University, College of Computer Science Message-ID: References: <1164746756.440087.22210@80g2000cwy.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164775261 12921 80.91.229.2 (29 Nov 2006 04:41:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Nov 2006 04:41:01 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 29 05:40:59 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GpHFf-0006Vd-Mz for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Nov 2006 05:40:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpHFf-0007hh-AH for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Nov 2006 23:40:55 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!feeder.news-service.com!216.196.110.148.MISMATCH!border1.nntp.ams.giganews.com!backlog2.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!uio.no!quimby.gnus.org!news.ccs.neu.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: winooski.ccs.neu.edu Original-X-Trace: camelot.ccs.neu.edu 1164775096 20906 129.10.115.117 (29 Nov 2006 04:38:16 GMT) Original-X-Complaints-To: news@news.ccs.neu.edu Original-NNTP-Posting-Date: Wed, 29 Nov 2006 04:38:16 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Original-Xref: shelby.stanford.edu gnu.emacs.help:143479 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39080 Archived-At: Eli Zaretskii writes: > > From: Eli Barzilay > > Date: 28 Nov 2006 16:00:04 -0500 > > > > > > > > If I put this (and only this) in my .emacs: > > > > > > > > (set-face-background 'modeline "red") > > > > (set-face-background 'default "blue4") > > > > > > > > I get a modeline with the default color. After Emacs has already > > > > started, evaluating that first line again produces the expected > > > > result. Is this some corner case bug? > > > > > > M-x customize-face RET mode-line > > > > This, as expected, does not solve the problem. > > You mean, if you customize the mode-line colors as you wish them to > be, then save the customizations for the future sessions, and > restart Emacs, the mode line again comes up with default colors? Only when I do it as in the above -- with setting the default face background. Removing that work, and like I said -- doing the second setting after Emacs starts works. > I can understand why set-face-background doesn't work in your > .emacs: when Emacs processes those lines, the modeline face does not > yet exist; you could fix that by, e.g., creating it with make-face. > But saving customizations with M-x customize should solve that > problem (in a different way), so I'm puzzled by ``does not solve the > problem''. I don't think that this is the problem. Actually I noticed something else -- I'm using Emacs both on the console (in a plain X session) and from VNC: the problem is on the console, but in VNC it works fine (using just these two lines as a minimal example). -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://www.barzilay.org/ Maze is Life!