From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12470 invoked by alias); 28 Jan 2016 19:28:59 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21197 Received: (qmail 16093 invoked from network); 28 Jan 2016 19:28:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=nh8QdVN16qzEvW08YSZS8+3dmL/7tD9xySWcjnlbWto=; b=0eel6QVyvq0Z6BUOT1aJnBPdsqsvqL44TGaxv5GKSvjnK4gD9BeMUAlK2EX2dAomJl sfiTk0YgGEszlPYVyL1v45vND1G0BIy+UdAAU9G8cVoWEf7LRXBLRMZffveQQGpyN0JX ldidECxCM9MPFEApC/hxxiJIETOnIWbUnVeNNnVdwrxWOxH8I3ajCIJvpjc9m89TA0Ev Y+dpzPjIGGimYUJyehJcX54n3c3Le65M26xfoJSnG7IUHg5LTK3Tz93pq2zbgfo532lY PkoCgp0ZX78yKYpP4mb6Bhp0oz86YtgeY1H1e6f2XbdDCZsBE3zUK0VuA1YxN4h8MTH4 aL8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=nh8QdVN16qzEvW08YSZS8+3dmL/7tD9xySWcjnlbWto=; b=ZtyOhsxB0np4vfthv5i1zOR4SdR6Hsst9sncwm1SqWDrgtqHLo0//vYBGkOiHZifAu OkPKRakFC3p14GPU2VUS1bfJUWdR6QXY8WjJeVtcUY6d6Cpn31MOfD6SeMD0gFTHxHYd 9k5aDeKQnYrkeplq0oSkQ3tAMW8DdBzNEhepthZipWsJly1s9VBvHZFeYzoxj66IkM8C CeemnqtGbRq2OjoAmpZVaQhaSJNjYIKZyqcyKhJ0zFCgxnIJ4ky3HBptcK7xd4brMpRG f3+9Y1TbGrCB+fXH0GJaDp4/7Lmzw527oTAFxJMTOEZrv0xDhkJq78Fy6r/ePYUtcpDz 2GTw== X-Gm-Message-State: AG10YOQeM/4YgVxvCRV3bHJ4+IjZrBSxiG7JL7nIBLAITTEM4wM1Y51zHBIh3mcw3IaA1w== X-Received: by 10.66.237.102 with SMTP id vb6mr7017068pac.133.1454009336152; Thu, 28 Jan 2016 11:28:56 -0800 (PST) From: Bart Schaefer Message-Id: <160128112941.ZM20292@torch.brasslantern.com> Date: Thu, 28 Jan 2016 11:29:41 -0800 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Re: How completions work, do they require fpath?" (Jan 28, 8:37am) References: <160126232017.ZM3789@torch.brasslantern.com> <160127231104.ZM17647@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: How completions work, do they require fpath? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jan 28, 8:37am, Sebastian Gniazdowski wrote: } } One thing emerged - I was expecting that empty say "_cp" will just be } ignored, because of lack of #compdef, however it isn't - it blocks } other "_cp" files from loading. That doesn't have anything to do with compinit, that's just the way autoloading always works. Compinit marks the names to be autoloaded, but it doesn't control where they come from when autoloading finally happens. This was bashed out in agonizing detail with Ray Andrews back in September. The reload-and-run trick could circumvent this, that is, if your autoload shadow were defined before compinit runs, then all of the functions it touches would load from the place they were found at compinit time rather than at execution time. But it would make compinit a bit slower and use a bit more memory.