Fix diff-changed face definition.

* lisp/vc/diff-mode.el (diff-changed): Don't use terminal specs for
defface (Bug#8144).
This commit is contained in:
Chong Yidong 2011-05-22 15:22:37 -04:00
parent 313f790eb7
commit d5b44c937b
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2011-05-22 Chong Yidong <cyd@stupidchicken.com>
* vc/diff-mode.el (diff-changed): Don't use terminal specs for
defface (Bug#8144).
2011-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/macroexp.el (macroexpand-all-1): Convert ' to #' for

View file

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