From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier 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 03:58:55 -0400 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 1342685590 11054 80.91.229.3 (19 Jul 2012 08:13:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2012 08:13:10 +0000 (UTC) Cc: 11894@debbugs.gnu.org, Dmitry Gutov To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 19 10:13:09 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 1Srlr4-0000se-Ch for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jul 2012 10:13:02 +0200 Original-Received: from localhost ([::1]:35953 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srlr3-0001aj-Kz for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jul 2012 04:13:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srlr0-0001a7-EE for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 04:12:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Srlqu-0007kE-Hq for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 04:12:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srlqu-0007jY-DF for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 04:12:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Srlws-0002KS-9q for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 04:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Jul 2012 08:19: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.13426858998904 (code B ref 11894); Thu, 19 Jul 2012 08:19:02 +0000 Original-Received: (at 11894) by debbugs.gnu.org; 19 Jul 2012 08:18:19 +0000 Original-Received: from localhost ([127.0.0.1]:49491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrlwA-0002JZ-Rc for submit@debbugs.gnu.org; Thu, 19 Jul 2012 04:18:19 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:59471) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Srlw8-0002JI-0n for 11894@debbugs.gnu.org; Thu, 19 Jul 2012 04:18:16 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q6J8C0eq009001; Thu, 19 Jul 2012 04:12:01 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 213FCAECB6; Thu, 19 Jul 2012 03:58:55 -0400 (EDT) In-Reply-To: (Andreas Schwab's message of "Wed, 18 Jul 2012 15:28:12 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4283=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4283> : streams <787092> : uri <1169141> 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:62145 Archived-At: >> 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? In any case I think that we're OK in the sense that we're not doing much worse than `patch'. Stefan