unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* `diff-mode' shows no colors
@ 2012-11-04  2:20 Lluís
  2012-11-04  2:37 ` Chong Yidong
  0 siblings, 1 reply; 3+ messages in thread
From: Lluís @ 2012-11-04  2:20 UTC (permalink / raw)
  To: emacs-devel

I'm using emacs 24.2.1 (debian's unstable emacs24 package) and observed that the
faces in `diff-mode', which should show some nice colors, are instead all shown
in grayscale.

After looking at the definition of some of these faces, it looks like the
`(min-colors 88)' condition is applying, leaving all of diff-mode in shades of
grey (the ones applying for dark background). Even starting with -q or -Q is not
enough to get diffs with color (which I had for some time).

Is there any way I can debug why exactly is this happening?


Thanks,
  Lluis

-- 
 "And it's much the same thing with knowledge, for whenever you learn
 something new, the whole world becomes that much richer."
 -- The Princess of Pure Reason, as told by Norton Juster in The Phantom
 Tollbooth



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

* Re: `diff-mode' shows no colors
  2012-11-04  2:20 `diff-mode' shows no colors Lluís
@ 2012-11-04  2:37 ` Chong Yidong
  2012-11-04 18:42   ` Lluís
  0 siblings, 1 reply; 3+ messages in thread
From: Chong Yidong @ 2012-11-04  2:37 UTC (permalink / raw)
  To: emacs-devel

Lluís <xscript@gmx.net> writes:

> I'm using emacs 24.2.1 (debian's unstable emacs24 package) and
> observed that the faces in `diff-mode', which should show some nice
> colors, are instead all shown in grayscale.
>
> After looking at the definition of some of these faces, it looks like
> the `(min-colors 88)' condition is applying, leaving all of diff-mode
> in shades of grey (the ones applying for dark background). Even
> starting with -q or -Q is not enough to get diffs with color (which I
> had for some time).

(min-colors 88) actually specifies the full-color version (I have no
ideas why Emacs uses the number 88 for this).  Emacs < 24.3 uses grey
for highlighting; just customize the faces if you want something more
colorful.  Emacs 24.3 will use the standard red/green color scheme.




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

* Re: `diff-mode' shows no colors
  2012-11-04  2:37 ` Chong Yidong
@ 2012-11-04 18:42   ` Lluís
  0 siblings, 0 replies; 3+ messages in thread
From: Lluís @ 2012-11-04 18:42 UTC (permalink / raw)
  To: emacs-devel

Chong Yidong writes:

> Lluís <xscript@gmx.net> writes:
>> I'm using emacs 24.2.1 (debian's unstable emacs24 package) and
>> observed that the faces in `diff-mode', which should show some nice
>> colors, are instead all shown in grayscale.
>> 
>> After looking at the definition of some of these faces, it looks like
>> the `(min-colors 88)' condition is applying, leaving all of diff-mode
>> in shades of grey (the ones applying for dark background). Even
>> starting with -q or -Q is not enough to get diffs with color (which I
>> had for some time).

> (min-colors 88) actually specifies the full-color version (I have no
> ideas why Emacs uses the number 88 for this).  Emacs < 24.3 uses grey
> for highlighting; just customize the faces if you want something more
> colorful.  Emacs 24.3 will use the standard red/green color scheme.

Ok, I tried with the emacs-snapshot package (24.2.50) and it does show colors
indeed. The "problem" was that the full-color version in 24.2.1 uses shades of
gray in the full-color version.

Sorry for the noise.


Thanks,
  Lluis

-- 
 "And it's much the same thing with knowledge, for whenever you learn
 something new, the whole world becomes that much richer."
 -- The Princess of Pure Reason, as told by Norton Juster in The Phantom
 Tollbooth



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

end of thread, other threads:[~2012-11-04 18:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-04  2:20 `diff-mode' shows no colors Lluís
2012-11-04  2:37 ` Chong Yidong
2012-11-04 18:42   ` Lluís

Code repositories for project(s) associated with this public inbox

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

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).