From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23642 invoked by alias); 14 Dec 2016 12:46:57 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 40182 Received: (qmail 9374 invoked from network); 14 Dec 2016 12:46:57 -0000 X-Qmail-Scanner-Diagnostics: from nm7-vm4.bullet.mail.ir2.yahoo.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(212.82.96.129):SA:0(0.0/5.0):. Processed in 3.038414 secs); 14 Dec 2016 12:46:57 -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=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: okiddle@yahoo.co.uk X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.mail.yahoo.com designates 212.82.96.129 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1481719239; bh=aunjO0hcBDe4RavFhW9l+GE2Kygq0xnneEqKwVWGYFU=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=NXqtQvFXMeoVNTua9gKbMXw+KNjzzEO8vhvj5CCeWOE1oplZv9OaAGjk5Q8uJMn7vtv7WubCM4l3MRXLu+ICztOqSmPG/NNTUA04DPXKQUYKuFU1+fppe68KZkhlGJvlwEEJ/grM9v8pvRfIInlSxv7EU5E1AHi/g9XbKIrrMYvNOnzYidzMa4eiud/cZaj9sbS5N1zPnE1u7x8k3wYOafWHQwiiSy4dZafJes6Eh1HzRCrn7YgwAwlG5+KqG8oH5nDf8+Yy6fSpe9LUERIm1N+QVU+Xi6gY9eI2cWtvLJcf3no/znIVNQ+Wkcwy6JvArDAUetC7+CbnwdfODi3gKQ== X-Yahoo-Newman-Id: 737469.4428.bm@smtp127.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: bf0LBVIVM1lE75nY9MV213a_2fVmAjItd1vfkMR1G.lU94D ODUveY2QN64OK54ImTjjr6p5tGjMXhLBXTm5xRv9EWu.EApLOGVvQ8M0xnaM 8wMKZkr2NHDmFfyiRyABA3ogizZU2tR4ODsK2qh9HfGc3ShTgzHbJR5WwWiP 0pTDbLQ8zEp6tRuaAbVUNx2itqUQHHi7mPm.eTBU655gEzEFKea7RuTs80vx 0b1YWf.2kZSYVpzXKqK_h7zX3sUtZP_8SBVK4YQHiztI7Jcq_qs2mRCxjmuR mwZ9VVgohdvEcxfg_VPXtoAn7WDbcHA32QRQOnCqw8.Q1olUZi4Cu2uaNfIL rtvDw9jXsYPIoLbfwtsbxeKHTV6PcShiKco0kthCBK5ZaW1u4_uDDWicpSQZ nqGMRtx.kygF9uV2209DlwHMEl6kJCFzOGM5_AF6RBM4PfGqYQAgVhnodPV6 50H5tqqI0hzbsBQlaUGftL1.oLoQz5ihQ6D4KadeznSf7YOG0U7atUeI0GZa iTGE87hh4.4dFx9PYz7QBLfYzqpHIhOCqRV8xF.F_ X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <161209191323.ZM9548@torch.brasslantern.com> From: Oliver Kiddle References: <20161209122958.GD19559@256bit.org> <57127.1481294647@hydra.kiddle.eu> <584AC8AC.9050406@eastlink.ca> <62522.1481300922@hydra.kiddle.eu> <584AEDBF.2050402@eastlink.ca> <161209165454.ZM9226@torch.brasslantern.com> <95362.1481338226@hydra.kiddle.eu> <161209191323.ZM9548@torch.brasslantern.com> To: zsh-workers@zsh.org Subject: plugin conventions (Re: off topic) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <97947.1481616643.1@hydra.kiddle.eu> Date: Wed, 14 Dec 2016 13:40:38 +0100 Message-ID: <23680.1481719238@hydra.kiddle.eu> On 9 Dec, Bart wrote: > On Dec 10, 3:50am, Oliver Kiddle wrote: > } > } Rather than a source-able file, would it perhaps make sense to embrace > } the concept of plugins. > > If we're going that route, the plugin manager that Sebastian has been > asking us for advice about for the last several months might be an > interesting idea. It's certainly an option to take an existing plugin manager and without having looked into any of them, I would tend to assume that Sebastian's is the best. It is also clearly very feature rich. I used the wording "rudimentary plugin manager" because what I had in mind foremost is standardising the conventions. A basic reference implementation helps with documenting that and determining what issues there might be. But perhaps that's already known. For example, I seem to remember something about the various frameworks causing compinit to be run multiple times. A pure plugin manager has no business running compinit even once but if there is a fundamental reason such as needing to do something only after compinit has run then perhaps we could add a hook in to compinit. Or was a good solution found for zplugin? > Although the idea with this particular file was simply to fold it in to > compinit. default_zstyle() doesn't prevent it altering an existing user's setup so unconditional inclusion might be a problem. Oliver