From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2545 invoked from network); 16 Oct 1999 04:47:39 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 16 Oct 1999 04:47:39 -0000 Received: (qmail 6918 invoked by alias); 16 Oct 1999 04:47:32 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8295 Received: (qmail 6910 invoked from network); 16 Oct 1999 04:47:31 -0000 To: zsh-workers@sunsite.auc.dk Subject: PATCH: _archie MIME-Version: 1.0 (generated by AKEMI 1.13.2 - =?ISO-2022-JP?B?Ig==?= =?ISO-2022-JP?B?GyRCQTA0Y0s8GyhCIg==?=) Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 16 Oct 1999 13:47:29 +0900 Message-ID: User-Agent: Chao-gnus/6.12.5 AKEMI/1.13.2 (=?ISO-2022-JP?B?GyRCQTAbKEI=?= =?ISO-2022-JP?B?GyRCNGNLPBsoQg==?=) FLAM-DOODLE/1.12.6 (=?ISO-2022-JP?B?GyRCM3cbKEI=?= 10R4.0/5.0) Emacs/20.4 (sparc-sun-solaris2.6) MULE/4.0 (HANANOEN) I wrote a completion function for _archie. But it has a problem. Z:akr@is27e1u11% Src/zsh -f is27e1u11% bindkey -e; fpath=($PWD/Completion/*(/)); autoload -U compinit; compinit -D; compdef _tst tst is27e1u11% compconf group_matches=yes message_format='%d' description_format='%d' is27e1u11% compconf describe_options=yes describe_values=yes option_prefix=yes is27e1u11% archie - -> is27e1u11% archie - string Why aren't descriptions of options displayed? This is also occured in plain 3.1.6-pws-6 after s/opt_args/options/. --- /dev/null Sat Oct 16 12:11:10 1999 +++ Completion/User/_archie Sat Oct 16 13:42:43 1999 @@ -0,0 +1,30 @@ +#compdef archie + +local state line +typeset -A opt_args + +_arguments -s \ + '-D[debug level]' \ + '-v[print version]' \ + '-V[verbose mode]' \ + '-O[specifies offset]:offset:' \ + '-a[list matches as Alex filenames]' \ + '-c[case sensitive substring search]' \ + '-e[exact string match (default)]' \ + '-r[regular expression search]' \ + '-s[case insensitive substring search]' \ + '-l[list one match per line]' \ + '-t[sort inverted by date]' \ + '-m[specifies maximum number of hits to return (default 95)]:hits to return:' \ + '-o[specifies file to store results in]:file to store:' \ + '-h[specifies server host]:server host:->serverhost' \ + '-L[list known servers and current default]' \ + '-N-[specifies query niceness level (0-35765)]:niceness level:' \ + ':string:' + +case "$state" in +serverhost) + : ${(A)archie_servers:=${(M)$(archie -L):#archie.*}} + compadd $archie_servers + ;; +esac -- Tanaka Akira