GNU bug report logs - #61396
diff mode could distinguish changed from deleted lines

Previous Next

Package: emacs;

Reported by: Samuel Wales <samologist <at> gmail.com>

Date: Fri, 10 Feb 2023 03:26:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Samuel Wales <samologist <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: 61396 <at> debbugs.gnu.org
Subject: bug#61396: diff mode could distinguish changed from deleted lines
Date: Fri, 10 Feb 2023 16:50:35 -0700
highlighting for all good men in + is the current case.

i am proposing that this is insufficient.  - has no indication or
highlighting other than del face and it is not a deleted line.

On 2/10/23, Samuel Wales <samologist <at> gmail.com> wrote:
> 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 <at> 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
>


-- 
The Kafka Pandemic

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




This bug report was last modified 1 year and 319 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.