[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
diff-mode misinterprets empty lines.
From: |
Richard Stallman |
Subject: |
diff-mode misinterprets empty lines. |
Date: |
Wed, 28 Nov 2007 20:03:48 -0500 |
This is important to fix. Would someone please fix it in Emacs 22,
then ack?
X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY
autolearn=failed version=3.1.0
To: address@hidden
From: Sergei Organov <address@hidden>
Date: Tue, 27 Nov 2007 21:04:17 +0300
Message-ID: <address@hidden>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: diff-mode misinterprets empty lines.
Hello,
In GNU Emacs 22.1.1 (i686-pc-linux-gnu, GTK+ Version 2.8.20).
GNU diff since version 2.8.7 outputs empty lines in the unified diff
format for empty context lines that don't change (instead of single
space followed by newline). See, e.g., the thread starting here:
<http://lists.gnu.org/archive/html/bug-gnu-utils/2006-09/msg00005.html>
Emacs diff-mode interprets empty lines as patch hunk separators, in
particular leading to wrong calculation of the length put into hunk
header. Another symptom is "C-c C-n" (diff-restrict-view) wrongly
restricts hunks with empty line(s).
Here is a patch hunk to test on:
@@ -1,7 +1,7 @@
l1
l3
- abc
+ cba
l5
l6
l7
--
Sergei Organov.
- diff-mode misinterprets empty lines.,
Richard Stallman <=