Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Tags in function files
- X-seq: zsh-workers 19092
- From: DervishD <raul@xxxxxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: Tags in function files
- Date: Wed, 17 Sep 2003 10:37:52 +0200
- Cc: Zsh <zsh-workers@xxxxxxxxxx>
- In-reply-to: <18188.1063784897@xxxxxxxxxxx>
- Mail-followup-to: Oliver Kiddle <okiddle@xxxxxxxxxxx>, Zsh <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: Pleyades
- References: <20030916203559.GA2160@DervishD> <18188.1063784897@xxxxxxxxxxx>
Hi Oliver :)
* Oliver Kiddle <okiddle@xxxxxxxxxxx> dixit:
> > and #autoload), are hardcoded in Zsh or is the new completion system
> > who parses it? I mean, can I use those tags in my shell scripts
> > without using the new completion system?
> It is the compinit shell function which parses them. So it is just the
> new completion system and not anything hardcoded into zsh.
OK, thanks :) BTW, the special parameters as 'words' and the
like, are too created and initialized by compinit (I mean, the new
completion system...)? $words doesn't seem to work, so I'm thinking
about using 'BUFFER' for command line parsing in order to call one of
the completion functions I need. Like _main_complete, but lots
simpler.
> You can use them in your own shell scripts if you really want. You might
> regret it if you start using the new completion system later though so
> it might be wiser to use a different word in your tags.
I take note, thanks :))) Anyway I was asking just for avoiding
explicit calls to 'compdef', but I noticed that compdef is just a
function defined by compinit!, so I cannot use it. No problem anyway.
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author