[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diff-apply-hunk broken

From: Juri Linkov
Subject: Re: diff-apply-hunk broken
Date: Thu, 08 Apr 2004 07:23:18 +0300
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Paul Eggert <address@hidden> writes:
> At 02 Apr 2004 20:48:04 -0500, Stefan Monnier <address@hidden> 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.

It seems that GNU Emacs have no such a test, but fortunately there
are only three files (diff.el, smerge-mode.el and vc.el) that use
a "-L" string, so it's not a problem to replace "-L" by "--label"
in these files.

Juri Linkov

reply via email to

[Prev in Thread] Current Thread [Next in Thread]