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


Message #149 received at 61396 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 61396 <at> debbugs.gnu.org, Samuel Wales <samologist <at> gmail.com>
Subject: Re: bug#61396: diff mode could distinguish changed from deleted lines
Date: Mon, 02 Oct 2023 19:56:36 +0300
> - Second, `diff-refine-hunk` highlights the text actually added and the
>   text actually removed within modified lines, but not the place where
>   text is added/removed in the other version.
>   [ As pointed out by Juri (thanks for Cc'ing me, BTW) this is linked to
>     a comment I left in `smerge--refine-highlight-change`, tho that
>     comment was thinking of a slightly different feature (namely the
>     ability to jump from one version to the other, or the addition of
>     a "phantom" cursor highlighting the corresponding place in the other
>     version).  ]
>   Here the problem is mostly that we don't have a standard way to
>   highlight a "place" (which is something that occupies 0 pixels on
>   screen).  But we could follow the (not unanimously appreciated) lead
>   of `rectangle-mode` and insert a thin (highlighted) visual space to
>   mark those places.  That should be not too hard to do, but it would
>   have to be optional I think because it'd tend to break alignment, so
>   some people may not find the upside significant enough to justify
>   the downsides.

Ediff highlights the first character of the context.  Logically
this is not correct, but probably Ediff predates the ability of
using a thin space like in `rectangle-mode`.  Or maybe because
it doesn't work on ttys.




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.