unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Barzilay <eli@barzilay.org>
Subject: Re: modeline colors
Date: 28 Nov 2006 23:38:16 -0500	[thread overview]
Message-ID: <m3u00ivpdz.fsf@winooski.ccs.neu.edu> (raw)
In-Reply-To: mailman.1270.1164773427.2155.help-gnu-emacs@gnu.org

Eli Zaretskii <eliz@gnu.org> writes:

> > From: Eli Barzilay <eli@barzilay.org>
> > 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!

  parent reply	other threads:[~2006-11-29  4:38 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-28 19:35 modeline colors Eli Barzilay
2006-11-28 20:45 ` aartist
2006-11-28 21:00   ` Eli Barzilay
2006-11-29  4:10     ` Eli Zaretskii
2006-11-29 18:33       ` Kevin Rodgers
2006-11-29 19:01         ` Peter Dyballa
     [not found]         ` <mailman.1304.1164827087.2155.help-gnu-emacs@gnu.org>
2006-11-29 19:20           ` Eli Barzilay
     [not found]     ` <mailman.1270.1164773427.2155.help-gnu-emacs@gnu.org>
2006-11-29  4:38       ` Eli Barzilay [this message]
2006-11-28 23:38   ` Mark Elston
2006-11-29  4:34     ` Eli Barzilay
2006-11-28 20:52 ` Peter Dyballa
2006-11-28 20:58   ` Eli Barzilay
     [not found] ` <mailman.1254.1164747174.2155.help-gnu-emacs@gnu.org>
2006-11-28 21:00   ` Eli Barzilay
2006-11-28 21:58     ` Peter Dyballa
2006-11-30 22:19 ` Eli Barzilay
2006-12-03  4:26   ` Eli Barzilay
2007-01-19 19:22     ` Kelsin
2007-01-19 19:39       ` Eli Barzilay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3u00ivpdz.fsf@winooski.ccs.neu.edu \
    --to=eli@barzilay.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).