[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61396: diff mode could distinguish changed from deleted lines
From: |
Samuel Wales |
Subject: |
bug#61396: diff mode could distinguish changed from deleted lines |
Date: |
Sat, 11 Feb 2023 17:52:36 -0700 |
this is a bug against emacs diff-mode.
diff is not responsible for diff-mode colors. diff-mode is.
On 2/11/23, Juri Linkov <juri@linkov.net> wrote:
>> i think it is in diff-mode in emacs, at least when it is displaying diff
>> -u.
>>
>> in particular, the idea is whether it can be solved using emacs
>> features such as faces.
>>
>> it is true that diff and friends can often do colors, but to my
>> knowledge, diff-mode uses raw text as its input.
>
> But diff has no color for changed lines, only for added/removed lines:
>
> '--palette=PALETTE'
> Specify what color palette to use when colored output is enabled.
> It defaults to 'rs=0:hd=1:ad=32:de=31:ln=36' for red deleted lines,
> green added lines, cyan line numbers, bold header.
>
> Supported capabilities are as follows.
>
> 'ad=32'
> SGR substring for added lines. The default is green foreground.
>
> 'de=31'
> SGR substring for deleted lines. The default is red foreground.
>
> 'hd=1'
> SGR substring for chunk header. The default is bold foreground.
>
> 'ln=36'
> SGR substring for line numbers. The default is cyan foreground.
>
--
The Kafka Pandemic
A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com
- bug#61396: diff mode could distinguish changed from deleted lines, Samuel Wales, 2023/02/09
- bug#61396: diff mode could distinguish changed from deleted lines, Juri Linkov, 2023/02/10
- bug#61396: diff mode could distinguish changed from deleted lines, Dmitry Gutov, 2023/02/10
- bug#61396: diff mode could distinguish changed from deleted lines, Richard Stallman, 2023/02/10
- bug#61396: diff mode could distinguish changed from deleted lines, Samuel Wales, 2023/02/11
- bug#61396: diff mode could distinguish changed from deleted lines, Juri Linkov, 2023/02/11
- bug#61396: diff mode could distinguish changed from deleted lines,
Samuel Wales <=
- bug#61396: diff mode could distinguish changed from deleted lines, Dmitry Gutov, 2023/02/11
- bug#61396: diff mode could distinguish changed from deleted lines, Samuel Wales, 2023/02/11
- bug#61396: diff mode could distinguish changed from deleted lines, Dmitry Gutov, 2023/02/11
- bug#61396: diff mode could distinguish changed from deleted lines, Samuel Wales, 2023/02/11
- bug#61396: diff mode could distinguish changed from deleted lines, Dmitry Gutov, 2023/02/11
- bug#61396: diff mode could distinguish changed from deleted lines, Samuel Wales, 2023/02/11
- bug#61396: diff mode could distinguish changed from deleted lines, Juri Linkov, 2023/02/12
- bug#61396: diff mode could distinguish changed from deleted lines, Samuel Wales, 2023/02/12
- bug#61396: diff mode could distinguish changed from deleted lines, Juri Linkov, 2023/02/12
- bug#61396: diff mode could distinguish changed from deleted lines, Samuel Wales, 2023/02/12