From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25358 invoked from network); 21 Jul 1999 12:35:14 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 21 Jul 1999 12:35:14 -0000 Received: (qmail 3641 invoked by alias); 21 Jul 1999 12:35:06 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7240 Received: (qmail 3633 invoked from network); 21 Jul 1999 12:35:05 -0000 To: zsh-workers@sunsite.auc.dk Subject: Re: CVS completer (Re: PATCH: Re: Completion/User functions again) References: <199907211127.NAA02895@beta.informatik.hu-berlin.de> 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: 21 Jul 1999 21:35:02 +0900 In-Reply-To: Sven Wischnowsky's message of "Wed, 21 Jul 1999 13:27:43 +0200 (MET DST)" 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) In article <199907211127.NAA02895@beta.informatik.hu-berlin.de>, Sven Wischnowsky writes: > I mainly changed `compgen -f' to `_files' and `compgen -/' to `_files -/' > and tweaked `_complete_opts' a bit so that `cvs ann -D' doesn't > give you `cvs ann -D-'. I didn't know _files in those days... > Some questions: > - (Bart already marked this) what should the compgen -k '()' do? Hm. I cannot remember the purpose of it. I guess that I wanted to complete a space after an argument. Of course, since it does not works as such behaviour, it should be fixed. I think it should be replaced by 'compadd "$PREFIX"'. > - And even with that in place: the `_complete_opts || _files' should > be reduced to `_files', right? (Unless the `compgen' really should > add something -- so I've not changed that, yet.) Since cvs login and cvs logout does not take any argument, it may be reduced to ':'. However, I like completing files if there is no suitable completion. -- Tanaka Akira