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: Wed, 18 Jul 2012 15:28:12 +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 1342618161 29803 80.91.229.3 (18 Jul 2012 13:29:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Jul 2012 13:29:21 +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 Wed Jul 18 15:29:20 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 1SrUJX-0002cI-Q6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jul 2012 15:29:15 +0200 Original-Received: from localhost ([::1]:50803 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrUJX-0002xm-4F for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jul 2012 09:29:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrUJK-0002x2-HO for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 09:29:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrUJE-0002Fp-EP for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 09:29:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrUJE-0002Fg-A1 for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 09:28:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SrUP7-0001PX-Pt for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 09:35:01 -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: Wed, 18 Jul 2012 13:35:01 +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.13426184655376 (code B ref 11894); Wed, 18 Jul 2012 13:35:01 +0000 Original-Received: (at 11894) by debbugs.gnu.org; 18 Jul 2012 13:34:25 +0000 Original-Received: from localhost ([127.0.0.1]:47778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrUOW-0001Of-T2 for submit@debbugs.gnu.org; Wed, 18 Jul 2012 09:34:25 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:39843) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrUOV-0001OW-Hx for 11894@debbugs.gnu.org; Wed, 18 Jul 2012 09:34:24 -0400 Original-Received: from frontend4.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3WcfNb0L1hz3hhbR; Wed, 18 Jul 2012 15:29:47 +0200 (CEST) Original-Received: from igel.home (ppp-93-104-147-56.dynamic.mnet-online.de [93.104.147.56]) by mail.mnet-online.de (Postfix) with ESMTPA id 3WcfLj0QJJzbbfn; Wed, 18 Jul 2012 15:28:13 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id A92A6CA2A5; Wed, 18 Jul 2012 15:28:12 +0200 (CEST) X-Yow: Were these parsnips CORRECTLY MARINATED in TACO SAUCE? In-Reply-To: (Stefan Monnier's message of "Wed, 18 Jul 2012 08:53:15 -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:62099 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. 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."