all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Colors getting screwed up after set-foreground-color.
@ 2002-06-30 22:00 Alfred M. Szmidt
  2002-06-30 22:37 ` Miles Bader
  0 siblings, 1 reply; 5+ messages in thread
From: Alfred M. Szmidt @ 2002-06-30 22:00 UTC (permalink / raw)


Hi,

Setting the foreground color and background color to anything other
than black or white, respectively, messes up font-lock mode.  For
example: message-header-to-face in its default state is MidnightBlue
(according to describe-face).  But after changing the
foreground/background color to something other than white/black, it is
green3.  This happens for all modes (font-lock-warning which is Red
becomes Pink after the color change).

This is with Emacs from CVS HEAD (2002-06-23).  And I haven't been
able to reproduce this on any other system, so it probably is
something that is weird with my system.

Any pointers on where to start looking for this bug (if it is a bug)?

Cheers,
-- 
Alfred M. Szmidt

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Colors getting screwed up after set-foreground-color.
  2002-06-30 22:00 Colors getting screwed up after set-foreground-color Alfred M. Szmidt
@ 2002-06-30 22:37 ` Miles Bader
  2002-06-30 23:08   ` Alfred M. Szmidt
  0 siblings, 1 reply; 5+ messages in thread
From: Miles Bader @ 2002-06-30 22:37 UTC (permalink / raw)


ams@kemisten.nu (Alfred M. Szmidt) writes:
> message-header-to-face in its default state is MidnightBlue
> (according to describe-face).  But after changing the
> foreground/background color to something other than white/black, it is
> green3.

Be more specific; _which_ `colors other than white/black'?

The definition of `message-header-to-face' (in lisp/gnus/message.el)
says to use "MidnightBlue" for light backgrounds and "green2" for dark
backgrounds.  I suspect this is what you're seeing.  If so, why do you
think it's a bug?

-Miles
-- 
Love is a snowmobile racing across the tundra.  Suddenly it flips over,
pinning you underneath.  At night the ice weasels come.  --Nietzsche

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Colors getting screwed up after set-foreground-color.
  2002-06-30 22:37 ` Miles Bader
@ 2002-06-30 23:08   ` Alfred M. Szmidt
  2002-06-30 23:58     ` Miles Bader
  0 siblings, 1 reply; 5+ messages in thread
From: Alfred M. Szmidt @ 2002-06-30 23:08 UTC (permalink / raw)
  Cc: gnu-emacs-bug

* Miles Bader writes:
> The definition of `message-header-to-face' (in lisp/gnus/message.el)
> says to use "MidnightBlue" for light backgrounds and "green2" for dark
> backgrounds.  I suspect this is what you're seeing.  If so, why do you
> think it's a bug?

Yes, this is probably what I am seeing.  The only reason why I
consider this a bug (or an annoying feature) is that it lacks
documentation (couldn't find anything in the Emacs manual).  It would
be nice if there was a small blurb in the manual that Emacs tries to
pick a color scheme that suits light/dark backgrounds.  And how to
disable it, if that is possible.  Because I actually prefer the
"light" colors on a dark background.

Cheers,
-- 
Alfred M. Szmidt

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Colors getting screwed up after set-foreground-color.
  2002-06-30 23:08   ` Alfred M. Szmidt
@ 2002-06-30 23:58     ` Miles Bader
  2002-07-01  0:33       ` Alfred M. Szmidt
  0 siblings, 1 reply; 5+ messages in thread
From: Miles Bader @ 2002-06-30 23:58 UTC (permalink / raw)
  Cc: gnu-emacs-bug

ams@kemisten.nu (Alfred M. Szmidt) writes:
> And how to
> disable it, if that is possible.  Because I actually prefer the
> "light" colors on a dark background.

Just use customize (M-x customize-face) on those faces who's defaults
you don't like.

If you _really_ want to completely override everything (and I suspect it
would be a mistake), you can customize the variable
`frame-background-mode' and set it to `light', which will fool emacs
into thinking this is the case.

-Miles
-- 
97% of everything is grunge

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Colors getting screwed up after set-foreground-color.
  2002-06-30 23:58     ` Miles Bader
@ 2002-07-01  0:33       ` Alfred M. Szmidt
  0 siblings, 0 replies; 5+ messages in thread
From: Alfred M. Szmidt @ 2002-07-01  0:33 UTC (permalink / raw)
  Cc: gnu-emacs-bug

Miles Bader <miles@gnu.org> writes:
> If you _really_ want to completely override everything (and I suspect it
> would be a mistake), you can customize the variable
> `frame-background-mode' and set it to `light', which will fool emacs
> into thinking this is the case.

And you suspect correctly, it looks horrible.  Thanks for explaining
it though.

Thanks,
-- 
Alfred M. Szmidt

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-07-01  0:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-30 22:00 Colors getting screwed up after set-foreground-color Alfred M. Szmidt
2002-06-30 22:37 ` Miles Bader
2002-06-30 23:08   ` Alfred M. Szmidt
2002-06-30 23:58     ` Miles Bader
2002-07-01  0:33       ` Alfred M. Szmidt

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.