Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: _cvs(&_arguments) bug



On Jan 8,  4:15pm, Sven Wischnowsky wrote:
}
} Felix Rosencrantz wrote:
} 
} > Though, I think _arguments should also be modified to provide a way to
} > say that there is an end to the flags being given to _arguments, and the
} > specifications are starting.  It's an easy mistake to make.
} 
} Yes, I've been thinking the same some time ago, but couldn't find a
} good `marker' that can be used to separate the _arguments-options from
} the specifications.  Any ideas?

I always wondered about the wisdom of making `--' mean something other
than "end of the _arguments options."

Just pick another option character; -e or -E or -: or some such.

And document it in a less-well-hidden spot.  The -A might be less likely to
cause such problems with the following patch:

Index: Doc/Zsh/compsys.yo
===================================================================
RCS file: /extra/cvsroot/zsh/zsh-4.0/Doc/Zsh/compsys.yo,v
retrieving revision 1.13
diff -c -r1.13 compsys.yo
--- Doc/Zsh/compsys.yo	2002/01/07 15:18:21	1.13
+++ Doc/Zsh/compsys.yo	2002/01/08 17:05:05
@@ -2955,7 +2955,7 @@
 different name for the argument context field.
 )
 findex(_arguments)
-item(tt(_arguments) var(spec) ...)(
+item(tt(_arguments) [ tt(-ACS) ] [ tt(-O) var(name) ] [ tt(-M) var(matchspec) ] var(spec) ...)(
 This function can be used to complete words on the line by describing the
 options and arguments which may be passed to the command for which
 completion is being performed.  The description is given as arguments to


-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author