From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15533 invoked by alias); 10 Feb 2016 10:32:04 -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: 21266 Received: (qmail 11765 invoked from network); 10 Feb 2016 10:32:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) 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.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=b26bxWCKHEWYNpb5lSIuGOIGIrKcG8TlW6aUm8erpOk=; b=0/3JMWmefqlvGlV2D1+GzUNrGWWF0uxw7AqN50I4JIC6N+LKA7yunnm+wWhasrFmpF HFiEioD/ZfL3zRWr9fylbssYRdu3pby76tKygKtUHBrw7X0I69XaASkNB9aeEZQ2ExM9 5aav11xrGHaK40Rqm1PGLYtbmMxKqoPq5HgrdL5lewvkiT5odm3DA3yaafFpIFE9dnm7 u8Au9PSPiYBrJxZ6XaLZ8cxEjeVG7XvIcqT3J3Nl+/hsC7aY+RzuZlkfNDRk8lge4gc3 F+RYH/IRRrtNgbcNzlU16hxAomxpp8d1Yg79vI4Vs/ydhVcauxudZZC8MbOMcr1LnKQ8 nhjw== 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:date :message-id:subject:from:to:cc:content-type; bh=b26bxWCKHEWYNpb5lSIuGOIGIrKcG8TlW6aUm8erpOk=; b=U+GH0wWiabm8WIBHNtT2q7BhiFuIpZWsEOVWfzVOjKjqRF7+thBNnw2Q5vm0/74J1j K73bro4JXR5Ga8yZxiS7YCsJPKdebm4xzb9rnzoZKoCS2LuF30HGTF1lidM07XOoVcE8 zDUUsTh5KD+7vuXJutzY5SP7Rieb9OKca+XXZ0iMuXWSSQgbbvbSU9LMt8SwRaQgdO4p Kqu3iyh5mNUjA5NHyrSPN+WDvA1KBuiteM+9gxd/D7k6b9+Fx5hIOgtmAokpUr7eqnZd b1EqIf285YWF18kNAeAOu8E02ZvgZg2nIbqRyNrjlaTN1+du6t4eScaGystWewYaDd3M 7/kw== X-Gm-Message-State: AG10YOR1CSLN519S6UoGlimDKkSJ4QtIIziQOD+6WtrbK1QfJHzuSDQnfO4qPnIBD8bJuDpSfCHITWRaQx1SNg== MIME-Version: 1.0 X-Received: by 10.140.156.212 with SMTP id c203mr50402257qhc.96.1455100320581; Wed, 10 Feb 2016 02:32:00 -0800 (PST) In-Reply-To: References: <20160210092322.GB6339@tarsus.local2> Date: Wed, 10 Feb 2016 11:32:00 +0100 Message-ID: Subject: Re: Forgetting about compinit with manual alteration of _comps From: Mikael Magnusson To: Sebastian Gniazdowski Cc: Daniel Shahaf , Zsh Users Content-Type: text/plain; charset=UTF-8 On Wed, Feb 10, 2016 at 11:28 AM, Sebastian Gniazdowski wrote: > On 10 February 2016 at 10:23, Daniel Shahaf wrote: >> However, I'm not sure making a plugin loadable _either before or after_ >> compinit is a good idea. It may be simpler for plugin authors to expect >> to be loaded in one circumstance (say, after compinit) and ensure they >> emit a clear error message in the other circumstance (say, before >> compinit), than to eternally support two codepaths. > > All this is a frustration about "compinit does everything". If there > was "compinit" and "compinit_examine_fpath", it would be all much > simpler. User would init completion at beginning of .zshrc, which is a > natural location for "init" things, and then "compinit_examine_fpath" > at end, which is also natural. All this resolved by providing > compdef() stub gathering compdef calls and allowing to replay them > after compinit placed at bottom of .zshrc. Another thought is designing a plugin interface designed around how zsh actually works, rather than bending over backwards to accomodate cargo culted code that barely works in the first place. -- Mikael Magnusson