zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: Re: Distributed Completion/ structure and compinit
Date: Thu, 26 Apr 2001 09:11:22 +0200 (MET DST)	[thread overview]
Message-ID: <200104260711.JAA04111@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: <1010425154458.ZM11283@candle.brasslantern.com>

Bart Schaefer wrote:

> The doc for compinit says:
> 
>  For incomplete installations, if compinit does not find enough files
>  beginning with an underscore (fewer than twenty) in the search path, it
>  will try to find more by adding the directory _compdir to the search
>  path.  Furthermore, if the directory in question ends in the path
>  segment Base, or has a subdirectory named Base, compinit will add all
>  subdirectories of the directory where Base is to the path: this allows
>  the functions to be in the same format as in the zsh source
>  distribution.
> 
> This doesn't quite work any more.  It handles one level of subdirectories,
> as in an install with --enable-function-subdirs, but not two levels of
> subdirectories as in the source.

Intentionally.  I wanted it to be able to work in a installation-like
setup, thinking that those who work with the source-form of the
completion system know how to set up their $fpath properly.

Do you want to say that we should change the tests to also look for,
say, $_compdir/Base/Core and if that exists, add `$_compdir/*/*(/)'?

> Also, I'm curious why this line in compaudit was commented out:
> 
>   ### [[ -d $_compdir/../Base ]] && _compdir=${_compdir:h}

I thought that this once was intended to cope with the case that
$_compdir is set to the directory that (before the move) contained the
comp* functions.  There the thing above made sense.  But since nowadays
the comp* functions are in the top-level directory itself it didn't seem
to make sense to look for certain sub-directories of the parent
directory of $_compdir.  Was I mistaken?

Bye
  Sven


-- 
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


  reply	other threads:[~2001-04-26  7:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-25 15:44 Bart Schaefer
2001-04-26  7:11 ` Sven Wischnowsky [this message]
2001-04-26  8:10   ` Bart Schaefer
2001-04-26 13:01     ` Sven Wischnowsky

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=200104260711.JAA04111@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.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).