[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Diff mode faces

From: Juri Linkov
Subject: Re: Diff mode faces
Date: Mon, 11 Jul 2005 03:06:40 +0300
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

> This part affects non-TTY platforms, while leaving the TTY colors
> intact.  Why?  I don't think there's any problem with Diff-mode colors
> on displays that support many colors, are there?

Maybe the following patch is more correct:

Index: lisp/diff-mode.el
RCS file: /cvsroot/emacs/emacs/lisp/diff-mode.el,v
retrieving revision 1.78
diff -u -r1.78 diff-mode.el
--- lisp/diff-mode.el   4 Jul 2005 23:08:52 -0000       1.78
+++ lisp/diff-mode.el   11 Jul 2005 00:06:51 -0000
@@ -197,7 +197,7 @@
     (((class color) (min-colors 88) (background dark))
      :background "grey60" :weight bold)
     (((class color) (background light))
-     :foreground "yellow" :weight bold)
+     :foreground "green" :weight bold)
     (((class color) (background dark))
      :foreground "cyan" :weight bold)
     (t :weight bold))                  ; :height 1.3
@@ -259,7 +280,7 @@
 (defvar diff-function-face 'diff-function)
 (defface diff-context
-  '((t :inherit shadow))
+  '((((class color) (min-colors 88)) :inherit shadow))
   "`diff-mode' face used to highlight context and other side-information."
   :group 'diff-mode)
 ;; backward-compatibility alias

Juri Linkov

reply via email to

[Prev in Thread] Current Thread [Next in Thread]