From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2683 invoked from network); 9 Jun 1999 09:30:44 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Jun 1999 09:30:44 -0000 Received: (qmail 25289 invoked by alias); 9 Jun 1999 09:30:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6549 Received: (qmail 25281 invoked from network); 9 Jun 1999 09:30:27 -0000 Message-Id: <9906090901.AA27957@ibmth.df.unipi.it> To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: Re: Completion and global aliases In-Reply-To: ""Andrej Borsenkow""'s message of "Wed, 09 Jun 1999 13:17:37 DFT." <003b01beb258$eaa6aad0$21c9ca95@mow.siemens.ru> Date: Wed, 09 Jun 1999 11:01:52 +0200 From: Peter Stephenson "Andrej Borsenkow" wrote: > As it seems, the possibilities are: > > - predefine compinit as autoloaded function if --enable-fndir is specified > - create a builtin that will source compinit > - provide COMPINIT (or eqv) parameter (read-only) to hold the full pathname > of compinit. That is probably the least evil. I don't see that it's that hard to tell a user `add the following to your .zshrc', or have it in /etc/zshrc, or let them run compinstall. Maybe the manual could provide a simple one-line suggestion, though, for anyone not wanting to run compinstall --- possibly the manual could be altered to contain the real location of compinit, but that will require more remaking than seems a good idea. > In any case, if compinit remains sourced script, I would suggest moving it > away from $fpath (e.g. in ${datadir}/zsh). How many users have 'autoload > $^fpath/*(:t)' as suggested by readme? It is probably not nice having > something else as functions in $fpath. (Autoloading everything in $fpath could conflict with Bart's `autoload -U' suggestion --- although I presume that first autoloading without -U, then with, will add the NOALIASES flag.) This complicates installation, however, and Oliver was suggesting he'd prefer the directory structure retained. I haven't worked out a simple way of doing all this. > And related - placement of dump file. Again, now, when most completion > functions are installed in system-wide location - what is the reason to try > put dump file in the same dir as compinit? Why not simply dump it in $HOME > by default? I mean, that check will probably fail in 99% of all > installations. Yes, it may be too heavily biassed towards people developing rather than using the system. I don't know when I'll get a chance to look at this, I have about 50 different things to do at once, so if someone has a way of simplifying all this so much the better. -- Peter Stephenson Tel: +39 050 844536 WWW: http://www.ifh.de/~pws/ Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy