[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33567: Syntactic fontification of diff hunks
From: |
Juri Linkov |
Subject: |
bug#33567: Syntactic fontification of diff hunks |
Date: |
Wed, 19 Dec 2018 23:49:16 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
> Anyway, to be clear, and other considerations aside, this works:
>[...]
> (defface diff-added
> @@ -315,9 +313,7 @@ diff-added
> (((class color) (min-colors 88) (background light))
> :background "#ddffdd")
> (((class color) (min-colors 88) (background dark))
> - :background "#335533")
> - (((class color))
> - :foreground "green"))
> + :background "#335533"))
> "`diff-mode' face used to highlight added lines.")
>[...]
> (defface diff-indicator-added
> '((default :inherit diff-added)
> (((class color) (min-colors 88))
> - :foreground "#22aa22"))
> + :foreground "#22aa22")
> + (((class color))
> + :foreground "green"))
> "`diff-mode' face used to highlight indicator of added lines (+, >)."
> :version "22.1")
> (defvar diff-indicator-added-face 'diff-indicator-added)
This looks good.
For the same reason we have the face font-lock-comment-delimiter-face
separate from font-lock-comment-face to use colors only on the former,
but not on the latter on tty with 8 colors to make easier to read comments.
- bug#33567: Syntactic fontification of diff hunks, (continued)
- bug#33567: Syntactic fontification of diff hunks, Juri Linkov, 2018/12/16
- bug#33567: Syntactic fontification of diff hunks, Eli Zaretskii, 2018/12/17
- bug#33567: Syntactic fontification of diff hunks, Juri Linkov, 2018/12/17
- bug#33567: Syntactic fontification of diff hunks, Juri Linkov, 2018/12/17
- bug#33567: Syntactic fontification of diff hunks, Dmitry Gutov, 2018/12/18
- bug#33567: Syntactic fontification of diff hunks, Juri Linkov, 2018/12/18
- bug#33567: Syntactic fontification of diff hunks, Dmitry Gutov, 2018/12/18
- bug#33567: Syntactic fontification of diff hunks, Juri Linkov, 2018/12/18
- bug#33567: Syntactic fontification of diff hunks, Dmitry Gutov, 2018/12/18
- bug#33567: Syntactic fontification of diff hunks, Dmitry Gutov, 2018/12/18
- bug#33567: Syntactic fontification of diff hunks,
Juri Linkov <=
- bug#33567: Syntactic fontification of diff hunks, Dmitry Gutov, 2018/12/19
- bug#33567: Syntactic fontification of diff hunks, Juri Linkov, 2018/12/20
- bug#33567: Syntactic fontification of diff hunks, Dmitry Gutov, 2018/12/23
- bug#33567: Syntactic fontification of diff hunks, Juri Linkov, 2018/12/25
- bug#33567: Syntactic fontification of diff hunks, Dmitry Gutov, 2018/12/25
- bug#33567: Syntactic fontification of diff hunks, Juri Linkov, 2018/12/26
- bug#33567: Syntactic fontification of diff hunks, Dmitry Gutov, 2018/12/26
- bug#33567: Syntactic fontification of diff hunks, Juri Linkov, 2018/12/26
- bug#33567: Syntactic fontification of diff hunks, Dmitry Gutov, 2018/12/26
- bug#33567: Syntactic fontification of diff hunks, Eli Zaretskii, 2018/12/26