aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2014-06-18 11:48:49 +0300
committerJuri Linkov2014-06-18 11:48:49 +0300
commit1a63945352257ede0289d37dd8a71e2cfa84f2ea (patch)
treed06aec3cfe948b11d6eead9267226c7c3d61f242
parent7c6fc37fa9a78a7a02f3f0ccb46a95c20fe315b4 (diff)
downloademacs-1a63945352257ede0289d37dd8a71e2cfa84f2ea.tar.gz
emacs-1a63945352257ede0289d37dd8a71e2cfa84f2ea.zip
* lisp/vc/diff-mode.el (diff-changed): Empty face definition
to use `diff-removed' and `diff-added' on tty as well. (diff-context): Use darker color on light background and lighter color on dark background. Fixes: debbugs:10181
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/vc/diff-mode.el15
2 files changed, 14 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1f0bf124c7f..c8229b6eb23 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,12 @@
12014-06-18 Juri Linkov <juri@jurta.org> 12014-06-18 Juri Linkov <juri@jurta.org>
2 2
3 * vc/diff-mode.el (diff-changed): Empty face definition to use
4 `diff-removed' and `diff-added' on tty as well. (Bug#10181)
5 (diff-context): Use darker color on light background and
6 lighter color on dark background.
7
82014-06-18 Juri Linkov <juri@jurta.org>
9
3 * vc/diff-mode.el (diff-refine-changed): Rename from 10 * vc/diff-mode.el (diff-refine-changed): Rename from
4 `diff-refine-change' for consistency with `diff-changed'. 11 `diff-refine-change' for consistency with `diff-changed'.
5 (diff-refine-change): Add obsolete face alias. (Bug#10181) 12 (diff-refine-change): Add obsolete face alias. (Bug#10181)
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el
index 3d985d9ca4d..4908c5f4961 100644
--- a/lisp/vc/diff-mode.el
+++ b/lisp/vc/diff-mode.el
@@ -302,14 +302,9 @@ well."
302(defvar diff-added-face 'diff-added) 302(defvar diff-added-face 'diff-added)
303 303
304(defface diff-changed 304(defface diff-changed
305 ;; We normally apply a `shadow'-based face on the `diff-context' 305 '((t nil))
306 ;; face, and keep `diff-changed' the default.
307 '((((class color grayscale) (min-colors 88)))
308 ;; If the terminal lacks sufficient colors for shadowing,
309 ;; highlight changed lines explicitly.
310 (((class color))
311 :foreground "yellow"))
312 "`diff-mode' face used to highlight changed lines." 306 "`diff-mode' face used to highlight changed lines."
307 :version "24.5"
313 :group 'diff-mode) 308 :group 'diff-mode)
314(define-obsolete-face-alias 'diff-changed-face 'diff-changed "22.1") 309(define-obsolete-face-alias 'diff-changed-face 'diff-changed "22.1")
315(defvar diff-changed-face 'diff-changed) 310(defvar diff-changed-face 'diff-changed)
@@ -343,8 +338,12 @@ well."
343(defvar diff-function-face 'diff-function) 338(defvar diff-function-face 'diff-function)
344 339
345(defface diff-context 340(defface diff-context
346 '((((class color grayscale) (min-colors 88)) :inherit shadow)) 341 '((((class color grayscale) (min-colors 88) (background light))
342 :foreground "#333333")
343 (((class color grayscale) (min-colors 88) (background dark))
344 :foreground "#dddddd"))
347 "`diff-mode' face used to highlight context and other side-information." 345 "`diff-mode' face used to highlight context and other side-information."
346 :version "24.5"
348 :group 'diff-mode) 347 :group 'diff-mode)
349(define-obsolete-face-alias 'diff-context-face 'diff-context "22.1") 348(define-obsolete-face-alias 'diff-context-face 'diff-context "22.1")
350(defvar diff-context-face 'diff-context) 349(defvar diff-context-face 'diff-context)