zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@zsh.org
Subject: Re: zsh autocompletion not quite right for "sccs delget"
Date: Tue, 15 Feb 2011 18:50:47 +0000	[thread overview]
Message-ID: <20110215185047.0b3c9e68@pws-pc.ntlworld.com> (raw)
In-Reply-To: <4D5810D7.5060608@oracle.com>

On Sun, 13 Feb 2011 12:11:51 -0500
Sebastien Roy <sebastien.roy@oracle.com> wrote:
> I'm running zsh 4.3.10, and the "sccs delget <file>" command doesn't do 
> autocompletion on the file argument.

Presumably the fix is something like the following, though I never use
sccs and don't really know what the different file completions are, and
it's using _arguments slightly differently from the way most functions do.

Index: Completion/Unix/Command/_sccs
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_sccs,v
retrieving revision 1.6
diff -p -u -r1.6 _sccs
--- Completion/Unix/Command/_sccs	21 Jan 2004 13:53:29 -0000	1.6
+++ Completion/Unix/Command/_sccs	15 Feb 2011 18:48:32 -0000
@@ -109,7 +109,9 @@ case $service in
   sact|print) _sccs_files;;
   create|enter) _files;;
   deledit|delget|delta)
-    _arguments '-s[silent]' '-y+[specify delta commentary]:comment'
+    _arguments "$sfiles" \
+	'-s[silent]' \
+	'-y+[specify delta commentary]:comment' \
   ;;
   diffs)
     _diff_options diff "$sfiles" "$ropt" "$copt" \

-- 
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


      reply	other threads:[~2011-02-15 18:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-13 17:11 Sebastien Roy
2011-02-15 18:50 ` Peter Stephenson [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=20110215185047.0b3c9e68@pws-pc.ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@zsh.org \
    /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).