bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Fri, 10 Feb 2023 16:49:00 -0700

it is an interesting idea to change the gutter from - to !, but i'm
not sure this is ok for diff -u, i think it could maybe break things?,
and it would not distinguish - from +.

On 2/10/23, Juri Linkov <juri@linkov.net> wrote:
>> a fix is to have a different face for changed lines.  i
>> suggest a muted bg face.  another fix is to stick a colored
>> marker INDICATOR in A where changes in B exist.
>>
>>   -now is the time^
>>   +now is the time FOR ALL GOOD MEN
>>
>> where ^ is a colored marker -- actually just a changed bg
>> for the newline in this case would work, but i don't think
>> emacs supports that.
>
> We have a dedicated face to indicate the changed lines.
> Its name is 'diff-changed' and it can be used for context diffs
> that have a special indicator '!' at the beginning of changed lines.
> Is it possible to output the same indicator for unified diffs?
>


-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com





reply via email to

[Prev in Thread] Current Thread [Next in Thread]