From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#11894: 24.1.50; [PATCH] diff-apply-hunk can be off by 1 line when the hunk is 0-context pure removal Date: Thu, 19 Jul 2012 10:40:57 +0200 Message-ID: References: <4FFB897D.7080303@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342687323 23803 80.91.229.3 (19 Jul 2012 08:42:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2012 08:42:03 +0000 (UTC) Cc: 11894@debbugs.gnu.org, Dmitry Gutov To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 19 10:42:02 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SrmJ8-0004VM-C9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jul 2012 10:42:02 +0200 Original-Received: from localhost ([::1]:42052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrmJ7-00061z-GF for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jul 2012 04:42:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrmIz-00061d-Rt for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 04:41:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrmIy-0006cE-Q3 for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 04:41:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrmIy-0006cA-Ma for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 04:41:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SrmOw-0003q3-KG for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 04:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Jul 2012 08:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11894 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 11894-submit@debbugs.gnu.org id=B11894.134268763514702 (code B ref 11894); Thu, 19 Jul 2012 08:48:02 +0000 Original-Received: (at 11894) by debbugs.gnu.org; 19 Jul 2012 08:47:15 +0000 Original-Received: from localhost ([127.0.0.1]:49514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrmOA-0003p4-7B for submit@debbugs.gnu.org; Thu, 19 Jul 2012 04:47:14 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:38962) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrmO6-0003op-24 for 11894@debbugs.gnu.org; Thu, 19 Jul 2012 04:47:11 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3Wd7yY1gC1z4KK31; Thu, 19 Jul 2012 10:42:29 +0200 (CEST) Original-Received: from igel.home (ppp-88-217-104-196.dynamic.mnet-online.de [88.217.104.196]) by mail.mnet-online.de (Postfix) with ESMTPA id 3Wd7wp1c7Tzbbvc; Thu, 19 Jul 2012 10:40:58 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id CBD42CA2A4; Thu, 19 Jul 2012 10:40:57 +0200 (CEST) X-Yow: I want to dress you up as TALLULAH BANKHEAD and cover you with VASELINE and WHEAT THINS.. In-Reply-To: (Stefan Monnier's message of "Thu, 19 Jul 2012 03:58:55 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62148 Archived-At: Stefan Monnier writes: >>> This looks like a bug in those versions of diff (not that I know >>> a non-buggy version, tho). >> Maybe, but that's how POSIX wants it: > >> The ending line number of an empty range shall be the number of the >> preceding line, or 0 if the range is at the start of the file. > > Hmm... but the number we're talking about is the starting-line-number, > isn't it? There is no starting-line-number. Next, the range of lines in file1 shall be written in the following format if the range contains two or more lines: "*** %d,%d ****\n", , and the following format otherwise: "*** %d ****\n", Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."