zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Ulrik Haugen <qha@lysator.liu.se>
Cc: zsh-workers@sunsite.dk
Subject: Re: PATCH for _diff_options to allow argument to -u
Date: Mon, 25 Apr 2005 10:13:13 +0200	[thread overview]
Message-ID: <7762.1114416793@trentino.groupinfra.com> (raw)
In-Reply-To: <87is2i1o0e.fsf@haugen.visit.se>

On 19 Apr, Ulrik Haugen wrote:
> Hello!
> 
> I recently discovered that you can control the amount of context that
> diff -u or -c gives you. Shortly thereafter it became very annoying
> that the zsh completion sees characters (other than other option
> characters) immediately following -u (or -c) as the original file name
> and thus won't complete the new file once you get as far as "diff -u0
> orig". The patch below makes the completion treat them the same way
> the option handling in diff does.

You should probably get used to using -U or --unified for specifying
lines of context. With diffutils 2.8.1 it works with -u but with
diffutils 2.8.4, I get this:

% diff -u0
diff: `-0' option is obsolete; use `-U 0'

The completion function is correct for the newer diffutils so I'll leave
the function as it is.

Oliver


      reply	other threads:[~2005-04-25  8:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-19 20:59 Ulrik Haugen
2005-04-25  8:13 ` Oliver Kiddle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7762.1114416793@trentino.groupinfra.com \
    --to=okiddle@yahoo.co.uk \
    --cc=qha@lysator.liu.se \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).