From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: diff-mode misinterprets empty lines. Date: Thu, 29 Nov 2007 10:26:25 +0100 Message-ID: <85ir3l767y.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196328412 12815 80.91.229.12 (29 Nov 2007 09:26:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2007 09:26:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 29 10:27:00 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 1Ixffe-0001HB-Tv for ged-emacs-devel@m.gmane.org; Thu, 29 Nov 2007 10:26:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxffP-00068R-9b for ged-emacs-devel@m.gmane.org; Thu, 29 Nov 2007 04:26:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IxffM-00068L-0A for emacs-devel@gnu.org; Thu, 29 Nov 2007 04:26:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IxffK-000689-TX for emacs-devel@gnu.org; Thu, 29 Nov 2007 04:26:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxffK-000686-QQ for emacs-devel@gnu.org; Thu, 29 Nov 2007 04:26:38 -0500 Original-Received: from mail-in-14.arcor-online.net ([151.189.21.54]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IxffG-0005PT-DM; Thu, 29 Nov 2007 04:26:34 -0500 Original-Received: from mail-in-16-z2.arcor-online.net (mail-in-16-z2.arcor-online.net [151.189.8.33]) by mail-in-14.arcor-online.net (Postfix) with ESMTP id 01B49187DC7; Thu, 29 Nov 2007 10:26:33 +0100 (CET) Original-Received: from mail-in-05.arcor-online.net (mail-in-05.arcor-online.net [151.189.21.45]) by mail-in-16-z2.arcor-online.net (Postfix) with ESMTP id E3BD525409F; Thu, 29 Nov 2007 10:26:32 +0100 (CET) Original-Received: from lola.goethe.zz (dslb-084-061-009-099.pools.arcor-ip.net [84.61.9.99]) by mail-in-05.arcor-online.net (Postfix) with ESMTP id A71101DB930; Thu, 29 Nov 2007 10:26:10 +0100 (CET) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 3F5E41C4D3AA; Thu, 29 Nov 2007 10:26:25 +0100 (CET) In-Reply-To: (Richard Stallman's message of "Wed, 28 Nov 2007 20:03:48 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-Virus-Scanned: ClamAV 0.91.2/4948/Wed Nov 28 21:42:33 2007 on mail-in-05.arcor-online.net X-Virus-Status: Clean X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:84288 Archived-At: Richard Stallman writes: > This is important to fix. Would someone please fix it in Emacs 22, > then ack? [...] > 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: > > I have to agree with those thinking it is a terrible idea to prune trailing spaces that are part of the _diff_ format. When people don't want trailing whitespace warnings to trigger in their editor, they should obviously amend diff-mode for that. But changing the diff format instead is insane. And that patch happens to have tolerance code intended to deal with utterly broken mailers is no excuse for that. There are lots of other tools working with diffs and applying patches. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum