GNU bug report logs - #54034
29.0.50; Diff prettify broken for empty files

Previous Next

Package: emacs;

Reported by: Matthias Meulien <orontee <at> gmail.com>

Date: Thu, 17 Feb 2022 07:49:02 UTC

Severity: normal

Found in version 29.0.50

Full log


View this message in rfc822 format

From: Matthias Meulien <orontee <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 54034 <at> debbugs.gnu.org
Subject: bug#54034: 29.0.50; Diff prettify broken for empty files
Date: Tue, 22 Feb 2022 07:58:29 +0100
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> I just pushed a change for that as well.

Thank you!

> Of course, there's always the problem that this prettification
> hides info, so there's a tension here.

You're right.

Would changing the string "Modified file  " to "Modified file and file
mode  " be better when both the file and the file mode are changed?

We also could handle "mode changes" only hunks with the string "Modified
file mode ".

Does this proposal looks good to you? I can try to implement it.

Unfortunately for the last case we'll have to modify the regex to match
the file name from the "diff --git" line...

To improve the situation on hidden info, would it make sense to provide
a `diff-toggle-display-properties-at-point`?  Or/and provide the
original text as tooltip?  Just thinking.
-- 
Matthias




This bug report was last modified 2 years and 349 days ago.

Previous Next


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