From: "Andrej Borsenkow" <borsenkow.msk@sni.de>
To: "ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: compinit as function?
Date: Wed, 14 Apr 1999 16:23:35 +0400 [thread overview]
Message-ID: <009201be8671$9e448670$21c9ca95@mowp.siemens.ru> (raw)
Is there any real reason, why compinit cannot be a function?
The only problem as far as I can see is, that it defines several global
AA's - and current typeset's will make them local.
One workaround is to use
: ${(AA)hash:=}
(it is ugly, but it works)
Another possibility is to add the global flag to typeset: typeset -g. Can it
be useful in other cases?
Having compinit as function will allow to simply drop the whole stuff in
auoloaded fpath - and don't worry about path to compinit anymore. Of course,
then some other standard path to dump file is needed.
/andrej
next reply other threads:[~1999-04-14 12:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-14 12:23 Andrej Borsenkow [this message]
1999-04-14 12:38 ` Peter Stephenson
1999-04-14 13:13 ` Andrej Borsenkow
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='009201be8671$9e448670$21c9ca95@mowp.siemens.ru' \
--to=borsenkow.msk@sni.de \
--cc=zsh-workers@sunsite.auc.dk \
/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).