aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2011-05-22 15:22:37 -0400
committerChong Yidong2011-05-22 15:22:37 -0400
commitd5b44c937b53864aa35d9ad290196f16bbd9cb4f (patch)
tree6fce59248a745987ecb471ed5542c78a45c23c54
parent313f790eb72258ec818e2bdac6ebf5bbcebc4302 (diff)
downloademacs-d5b44c937b53864aa35d9ad290196f16bbd9cb4f.tar.gz
emacs-d5b44c937b53864aa35d9ad290196f16bbd9cb4f.zip
Fix diff-changed face definition.
* lisp/vc/diff-mode.el (diff-changed): Don't use terminal specs for defface (Bug#8144).
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/vc/diff-mode.el9
2 files changed, 12 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5b0fa090eaa..ea1c659a89e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-05-22 Chong Yidong <cyd@stupidchicken.com>
2
3 * vc/diff-mode.el (diff-changed): Don't use terminal specs for
4 defface (Bug#8144).
5
12011-05-22 Stefan Monnier <monnier@iro.umontreal.ca> 62011-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * emacs-lisp/macroexp.el (macroexpand-all-1): Convert ' to #' for 8 * emacs-lisp/macroexp.el (macroexpand-all-1): Convert ' to #' for
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."
295(defvar diff-added-face 'diff-added) 295(defvar diff-added-face 'diff-added)
296 296
297(defface diff-changed 297(defface diff-changed
298 '((((type tty pc) (class color) (background light)) 298 ;; We normally apply a `shadow'-based face on the `diff-context'
299 ;; face, and keep `diff-changed' the default.
300 '((((class color grayscale) (min-colors 88)))
301 ;; If the terminal lacks sufficient colors for shadowing,
302 ;; highlight changed lines explicitly.
303 (((class color) (background light))
299 :foreground "magenta" :weight bold :slant italic) 304 :foreground "magenta" :weight bold :slant italic)
300 (((type tty pc) (class color) (background dark)) 305 (((class color) (background dark))
301 :foreground "yellow" :weight bold :slant italic)) 306 :foreground "yellow" :weight bold :slant italic))
302 "`diff-mode' face used to highlight changed lines." 307 "`diff-mode' face used to highlight changed lines."
303 :group 'diff-mode) 308 :group 'diff-mode)