From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: diff-mode misinterprets empty lines. Date: Wed, 28 Nov 2007 20:03:48 -0500 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1196298363 6496 80.91.229.12 (29 Nov 2007 01:06:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2007 01:06:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 29 02:06:12 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IxXq4-0000lR-Du for ged-emacs-devel@m.gmane.org; Thu, 29 Nov 2007 02:05:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxXpo-0004FQ-Ql for ged-emacs-devel@m.gmane.org; Wed, 28 Nov 2007 20:04:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IxXol-0002kh-Ow for emacs-devel@gnu.org; Wed, 28 Nov 2007 20:03:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IxXok-0002ht-0R for emacs-devel@gnu.org; Wed, 28 Nov 2007 20:03:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxXoj-0002hG-J7 for emacs-devel@gnu.org; Wed, 28 Nov 2007 20:03:49 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IxXoj-0005XK-33 for emacs-devel@gnu.org; Wed, 28 Nov 2007 20:03:49 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IxXoi-0008P4-U3; Wed, 28 Nov 2007 20:03:48 -0500 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84272 Archived-At: 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: bug-gnu-emacs@gnu.org From: Sergei Organov Date: Tue, 27 Nov 2007 21:04:17 +0300 Message-ID: <8763zno99a.fsf@osv.gnss.ru> 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: 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.