aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJuri Linkov2012-05-25 03:55:40 +0300
committerJuri Linkov2012-05-25 03:55:40 +0300
commitbc1b21bb4e3594708570a1f503f69b8acc1e6814 (patch)
tree37a4e07a7c186ee88c3d86caa0c3ebdb4052bc66 /etc
parent532f361c96162f1a90756b2276f3091b1c273f23 (diff)
downloademacs-bc1b21bb4e3594708570a1f503f69b8acc1e6814.tar.gz
emacs-bc1b21bb4e3594708570a1f503f69b8acc1e6814.zip
Use the same diff color scheme as in modern VCSes (bug#10181).
* lisp/vc/diff-mode.el (diff-header, diff-file-header): Remove "green" to avoid confusion with `diff-added' that now uses green colors. (diff-removed): Use shades of red. (diff-added): Use shades of green. (diff-changed): Leave just the yellow color. (diff-use-changed-face): New variable. (diff-font-lock-keywords): Use `diff-use-changed-face' to decide how to highlight context diff changes. (diff-refine-change): Use shades of yellow. (diff-refine-removed): New face that uses shades of red. (diff-refine-added): New face that uses shades of green. (diff-refine-hunk): Use `diff-refine-change', `diff-refine-added', `diff-refine-removed' in the call to `smerge-refine-subst' depending on the value of `diff-use-changed-face'. * lisp/vc/ediff-init.el (ediff-current-diff-A, ediff-fine-diff-A): Add face condition `min-colors 88' with shades of red. (ediff-current-diff-B, ediff-fine-diff-B): Add face condition `min-colors 88' with shades of green. (ediff-current-diff-C, ediff-fine-diff-C): Add face condition `min-colors 88' with shades of yellow. * lisp/vc/smerge-mode.el (smerge-mine): Use shades of red. (smerge-other): Use shades of green. (smerge-base): Use shades of yellow. (smerge-refined-change): Empty face. (smerge-refined-removed): New face that uses shades of red. (smerge-refined-added): New face that uses shades of green. (smerge-refine-subst): Rename arg `props' to `props-c'. Add new args `props-r' and `props-a', and use them. Doc fix. (smerge-refine): Evaluate `smerge-use-changed-face' and depending on its value use different faces `smerge-refined-change', `smerge-refined-removed', `smerge-refined-added' in the call to `smerge-refine-subst'.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index f6a5bcda480..b097757dab6 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -94,6 +94,17 @@ character when doing minibuffer filename prompts.
94 94
95* Changes in Specialized Modes and Packages in Emacs 24.2 95* Changes in Specialized Modes and Packages in Emacs 24.2
96 96
97** Diff mode
98
99Faces for changes now use the same diff color scheme as in modern VCSes
100where deletions are displayed in red (new faces `diff-refine-removed'
101and `smerge-refined-removed' and new definition of `diff-removed'),
102insertions in green (new faces `diff-refine-added' and
103`smerge-refined-added' and new definition of `diff-added').
104The variable `diff-use-changed-face' defines whether to use
105the face `diff-changed', or `diff-removed' and `diff-added'
106to highlight changes in context diffs.
107
97** `sh-script' 108** `sh-script'
98*** Pairing of parens/quotes uses electric-pair-mode instead of skeleton-pair. 109*** Pairing of parens/quotes uses electric-pair-mode instead of skeleton-pair.
99*** `sh-electric-here-document-mode' now controls auto-insertion of here-docs. 110*** `sh-electric-here-document-mode' now controls auto-insertion of here-docs.