From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: diff-apply-hunk broken Date: Fri, 02 Apr 2004 22:47:11 -0800 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <7wzn9tfths.fsf@sic.twinsun.com> References: <1080547857.5425.676.camel@localhost> <1080658566.29736.101.camel@localhost> <20040331230818.GD6299@fencepost> <7wfzbnb71m.fsf@sic.twinsun.com> <7494-Fri02Apr2004093233+0300-eliz@gnu.org> <7w65cihr3j.fsf@sic.twinsun.com> <87hdw13n7o.fsf-monnier+emacs@iro.umontreal.ca> <7wsmflj0ot.fsf@sic.twinsun.com> <87brm93k9q.fsf-monnier+emacs@iro.umontreal.ca> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1080974960 5331 80.91.224.253 (3 Apr 2004 06:49:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 3 Apr 2004 06:49:20 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Apr 03 08:49:09 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B9exp-0000ss-00 for ; Sat, 03 Apr 2004 08:49:09 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B9exo-0002GK-00 for ; Sat, 03 Apr 2004 08:49:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B9exd-000779-H2 for emacs-devel@quimby.gnus.org; Sat, 03 Apr 2004 01:48:57 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B9exW-00073D-Si for emacs-devel@gnu.org; Sat, 03 Apr 2004 01:48:50 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B9ex2-0006P8-Qi for emacs-devel@gnu.org; Sat, 03 Apr 2004 01:48:49 -0500 Original-Received: from [198.147.65.9] (helo=alcor.twinsun.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1B9ew0-00057n-Dz; Sat, 03 Apr 2004 01:47:17 -0500 Original-Received: from green.twinsun.com ([192.54.239.71]) by alcor.twinsun.com (8.12.6/8.12.6) with ESMTP id i336lBCj004020; Fri, 2 Apr 2004 22:47:12 -0800 (PST) Original-Received: from shade.twinsun.com (shade.twinsun.com [192.54.239.27]) by green.twinsun.com (8.11.7p1+Sun/8.11.7) with SMTP id i336lBj09981; Fri, 2 Apr 2004 22:47:11 -0800 (PST) Original-Received: from sic.twinsun.com ([192.54.239.17]) by shade.twinsun.com (SAVSMTP 3.1.0.29) with SMTP id M2004040222471117878 ; Fri, 02 Apr 2004 22:47:11 -0800 Original-Received: (from eggert@localhost) by sic.twinsun.com (8.11.7p1+Sun/8.11.7) id i336lBR19215; Fri, 2 Apr 2004 22:47:11 -0800 (PST) Original-To: Stefan Monnier In-Reply-To: <87brm93k9q.fsf-monnier+emacs@iro.umontreal.ca> (Stefan Monnier's message of "02 Apr 2004 20:48:04 -0500") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (usg-unix-v) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21228 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21228 At 02 Apr 2004 20:48:04 -0500, Stefan Monnier writes: >>> Is --label accepted by all known non-ancient diff implementations? >> Yes. --label has been supported ever since diffutils 2.0, released in >> 1992. These days it's safe to assume --label, if it's GNU diff. > > I can't assume GNU diff. So how about other system's `diff'? Some "diff" implementations lack -L, so portable applications cannot use "diff -L". For example, Solaris 9 "diff" lacks -L. -L is not standardized by POSIX. I recall that this is not a problem with GNU Emacs, as it tests whether diff supports -L (or --label) before using that option.