From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24840 invoked by alias); 29 Jan 2016 08:02:30 -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: 21199 Received: (qmail 6516 invoked from network); 29 Jan 2016 08:02:28 -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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=wJyhlZW3HIOJbC3xHe+wW39c75vuXe26cSYFUUwedwU=; b=xlrYYL2OksKXfo8V8LmmkeB+CC+f+wIJMINNPSS5JmwjUdba9L9cklaOfQ94U0fBYR 8ua72E8ijHWkWBcMSXKGlqUfBGnXe/kL0XHDufwgeIw5uskhML7+icWFEExbOclZWxef dGaHB2CKh5RNwfNuzI3x29ioqEzUlZNzkqikGHYHJ/+9E5kKtiI+65AumK/Kh5i9EMQB C1Cu4KVShmHK+JySZBSTWaYgFZeClkBCvWqLO6oHEt+JiJHVeqplGY7bIHE+u9DrePYU E8EWAlreOAyxvdm+XCVZCg2rr/zzksFB2cHdylH+MusYheEv6/VkI/zGKgVhp229P9aM RQWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=wJyhlZW3HIOJbC3xHe+wW39c75vuXe26cSYFUUwedwU=; b=CKhCIzmNMdH+QG4T55v95xBkTJ8fz6NbKAvQArJ+poU92+lLYeXoL9ypzgIa0PT7nP 1EEV+lY/oyg3PZ5UFbALMRocHQ1kjx4DFLhOOVaxWbSWG3XTflalHvw2jvCe9BYnqZjS 3DYlNkGgQtBNb2ZDJxIpno8PlC0HlFdc052Y+DkJBe3nwMzFfF/Zs1PGUgPj11Lj3+74 e46t6kONaTH8/c0Of18dXzYHSKv+yV21hqMp95Nuhu4BmE2jiwgc5o2B5VzBFJ/RGdvG 80qlOvEBqT6hExc/lSfAYt9SmtaA/MwqBQvK4WT5doFWrWunpICCct/RlG++jHzB8U6Y 8iXA== X-Gm-Message-State: AG10YOTCbRsNdjJ5OYOtnydgoEgIJNIBVPjN9StY49QTC4VRpPexW7HA2Pa0wXuuA8Z1XyigLdSr+y0TeB3AZQ== X-Received: by 10.25.7.10 with SMTP id 10mr2195464lfh.107.1454054544452; Fri, 29 Jan 2016 00:02:24 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <160128152332.ZM20837@torch.brasslantern.com> References: <160126232017.ZM3789@torch.brasslantern.com> <160127231104.ZM17647@torch.brasslantern.com> <160128152332.ZM20837@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Fri, 29 Jan 2016 09:02:05 +0100 Message-ID: Subject: Re: How completions work, do they require fpath? To: Bart Schaefer Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 On 29 January 2016 at 00:23, Bart Schaefer wrote: > The intention is that #1 is simple and can be rubber-stamped for every > new completion function, but you always have #2 if #1 doesn't work for > some reason. Either way "compinit" has to happen to set up the rest of > compsys, so there's no point in defining "compdef" independently. There is a plugin (voronkovich/get-jquery) that calls compdef. The problem is that this requires compinit being run before loading plugins. But after loading them, compinit is also to be run, to take account of possible new completions added by the plugins. I guess I will shadow compdef and load compinit, and warn user about that in report, that he will have compinit run twice. Unless there is a way to provide compdef without whole compinit? Best regards, Sebastian Gniazdowski