[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 02:11:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
>> I tried to replicate your settings: in emacs -Q I change the default
>> foreground with e.g. M-x set-foreground-color RET
>
> That only seems to change the default's foreground color. Which affects how
> the context looks, but not lines with changes.
>
>> A side note: M-x set-foreground-color RET TAB shows a list
>> of colors with different backgrounds, not foregrounds
>> as it would be natural to expect, so it is difficult to decide
>> what foreground color to select by looking at background colors.
>> This needs a separate bug#.
>
> Indeed, it only gives a rough idea.
Reported to bug#33799.
>> Ok, let's say I chose M-x set-foreground-color RET LightSeaGreen
>>
>> Now in diff-mode I see exactly the same fontification with the same
>> foreground colors and as seen in the original buffer visited from
>> diff-mode by `C-c C-c', plus red/green background added by diff-mode.
>
> Let me show you a screenshot. I've set some purple-ish foreground using
> 'M-x set-foreground-color', and you can see it in certain places. But where
> there was the "default" face in the original buffers, in the changes lines
> there is now green4 or red4 in the foreground, coming from the respective
> faces diff-added and diff-removed.
Thanks, I see now.
Does it help to remove foreground colors from diff-added and diff-removed?
Neither GitHub nor GitLab have foreground green/red colors, only background
green/red colors.
- bug#33567: Syntactic fontification of diff hunks, (continued)
- bug#33567: Syntactic fontification of diff hunks, Juri Linkov, 2018/12/05
- bug#33567: Syntactic fontification of diff hunks, Juri Linkov, 2018/12/12
- bug#33567: Syntactic fontification of diff hunks, Eli Zaretskii, 2018/12/14
- 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 <=
- 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, 2018/12/19
- 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