summaryrefslogtreecommitdiff
path: root/lisp/vc
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2011-05-22 15:22:37 -0400
committerChong Yidong <cyd@stupidchicken.com>2011-05-22 15:22:37 -0400
commitd5b44c937b53864aa35d9ad290196f16bbd9cb4f (patch)
tree6fce59248a745987ecb471ed5542c78a45c23c54 /lisp/vc
parent313f790eb72258ec818e2bdac6ebf5bbcebc4302 (diff)
downloademacs-d5b44c937b53864aa35d9ad290196f16bbd9cb4f.tar.gz
Fix diff-changed face definition.
* lisp/vc/diff-mode.el (diff-changed): Don't use terminal specs for defface (Bug#8144).
Diffstat (limited to 'lisp/vc')
-rw-r--r--lisp/vc/diff-mode.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el
index 56ebe868a2d..392973e08fe 100644
--- a/lisp/vc/diff-mode.el
+++ b/lisp/vc/diff-mode.el
@@ -295,9 +295,14 @@ try to refine the current hunk, as well."
(defvar diff-added-face 'diff-added)
(defface diff-changed
- '((((type tty pc) (class color) (background light))
+ ;; We normally apply a `shadow'-based face on the `diff-context'
+ ;; face, and keep `diff-changed' the default.
+ '((((class color grayscale) (min-colors 88)))
+ ;; If the terminal lacks sufficient colors for shadowing,
+ ;; highlight changed lines explicitly.
+ (((class color) (background light))
:foreground "magenta" :weight bold :slant italic)
- (((type tty pc) (class color) (background dark))
+ (((class color) (background dark))
:foreground "yellow" :weight bold :slant italic))
"`diff-mode' face used to highlight changed lines."
:group 'diff-mode)