diff options
Diffstat (limited to 'lisp/diff-mode.el')
| -rw-r--r-- | lisp/diff-mode.el | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el index 17602317958..9b00eae050d 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el | |||
| @@ -169,27 +169,27 @@ when editing big diffs)." | |||
| 169 | ;;;; | 169 | ;;;; |
| 170 | 170 | ||
| 171 | (defface diff-header-face | 171 | (defface diff-header-face |
| 172 | '((((type tty pc) (class color) (background light)) | 172 | '((((class color) (min-colors 88) (background light)) |
| 173 | (:foreground "blue1" :weight bold)) | ||
| 174 | (((type tty pc) (class color) (background dark)) | ||
| 175 | (:foreground "green" :weight bold)) | ||
| 176 | (((class color) (background light)) | ||
| 177 | (:background "grey85")) | 173 | (:background "grey85")) |
| 178 | (((class color) (background dark)) | 174 | (((class color) (min-colors 88) (background dark)) |
| 179 | (:background "grey45")) | 175 | (:background "grey45")) |
| 176 | (((class color) (background light)) | ||
| 177 | (:foreground "blue1" :weight bold)) | ||
| 178 | (((class color) (background dark)) | ||
| 179 | (:foreground "green" :weight bold)) | ||
| 180 | (t (:weight bold))) | 180 | (t (:weight bold))) |
| 181 | "`diff-mode' face inherited by hunk and index header faces.") | 181 | "`diff-mode' face inherited by hunk and index header faces.") |
| 182 | (defvar diff-header-face 'diff-header-face) | 182 | (defvar diff-header-face 'diff-header-face) |
| 183 | 183 | ||
| 184 | (defface diff-file-header-face | 184 | (defface diff-file-header-face |
| 185 | '((((type tty pc) (class color) (background light)) | 185 | '((((class color) (min-colors 88) (background light)) |
| 186 | (:foreground "yellow" :weight bold)) | ||
| 187 | (((type tty pc) (class color) (background dark)) | ||
| 188 | (:foreground "cyan" :weight bold)) | ||
| 189 | (((class color) (background light)) | ||
| 190 | (:background "grey70" :weight bold)) | 186 | (:background "grey70" :weight bold)) |
| 191 | (((class color) (background dark)) | 187 | (((class color) (min-colors 88) (background dark)) |
| 192 | (:background "grey60" :weight bold)) | 188 | (:background "grey60" :weight bold)) |
| 189 | (((class color) (background light)) | ||
| 190 | (:foreground "yellow" :weight bold)) | ||
| 191 | (((class color) (background dark)) | ||
| 192 | (:foreground "cyan" :weight bold)) | ||
| 193 | (t (:weight bold))) ; :height 1.3 | 193 | (t (:weight bold))) ; :height 1.3 |
| 194 | "`diff-mode' face used to highlight file header lines.") | 194 | "`diff-mode' face used to highlight file header lines.") |
| 195 | (defvar diff-file-header-face 'diff-file-header-face) | 195 | (defvar diff-file-header-face 'diff-file-header-face) |
| @@ -976,7 +976,7 @@ a diff with \\[diff-reverse-direction]." | |||
| 976 | "Turn context diffs into unified diffs if applicable." | 976 | "Turn context diffs into unified diffs if applicable." |
| 977 | (if (save-excursion | 977 | (if (save-excursion |
| 978 | (goto-char (point-min)) | 978 | (goto-char (point-min)) |
| 979 | (looking-at "\\*\\*\\* ")) | 979 | (and (looking-at diff-hunk-header-re) (eq (char-after) ?*))) |
| 980 | (let ((mod (buffer-modified-p))) | 980 | (let ((mod (buffer-modified-p))) |
| 981 | (unwind-protect | 981 | (unwind-protect |
| 982 | (diff-context->unified (point-min) (point-max)) | 982 | (diff-context->unified (point-min) (point-max)) |