From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 665 invoked by alias); 30 May 2018 15:53:32 -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: List-Unsubscribe: X-Seq: 42890 Received: (qmail 8853 invoked by uid 1010); 30 May 2018 15:53:32 -0000 X-Qmail-Scanner-Diagnostics: from park01.gkg.net 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(205.235.26.22):SA:0(-1.4/5.0):. Processed in 1.449708 secs); 30 May 2018 15:53:32 -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.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_PASS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: SRS0=/zTh=IR=yahoo.co.uk=okiddle@bounces.park01.gkg.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Virus-Scanned: by amavisd-new at gkg.net Authentication-Results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1527695589; bh=G3gFNZfRpTwSScRR5Hs3dfd/dSM+o56nYTWHpf0BD1E=; h=From:References:To:Subject:Date:From:Subject; b=GBw1OPhLCO2hiuUe2SmE7DRKpglH+A69T4ZRwJpYceOhH3PD48VPzWHJIrUggfPeacW73lbkf32dilX7C6pLdvwxv7cQiRLS8/pMjIHZYHEqi1CCY8zFaxKE4HTo0pVs8mZK0KyvuatR5i3Z4EeN4MhJDx1fDEwyUwnBvBLYZfTect/bQ2RtvASevHMuNFWU5M0VhJTB57iQSXHYHB96IZ0M0cms/CFCYcCkPn3ebi74nQGhCn4oVJudC/S3b2pklWm1iaFJjuxqIcHl5Y2Vu/5Jnak2nHLT4HlVSbw4TUBb1ribyBN+6Ur4HkQZDKic9lZS65PJJlcg2rRYGJI6pQ== X-YMail-OSG: rJkr0_IVM1lC48fJ.UaHo2pn5qDGybA6dgjMiesWLHRNcgUt5Uxqx7figrRngnq y3qaM2A2wWFdMoQt7ZKwjFx9gm9IEW9sApT70DzbOBRlp0G9qdAefZszMg7tj4cfaqxWtUh_Ipvk ObQpza5QjElDkdTbwjJSgELy4XJ.eghu7UJvEjgOV6m82XolzWqi12BnTGISclfvaJDP10yCHBc4 Ol11NXn66mbBMnkOuz3S_3VdgL6GP5rEOAocGzIEK0zRpcLi1C4Sjl5FtDQ_OK11YNe8TCyXra_F 4K6XHJC5PzHyRm3tynUgKVIS0hYoxoJNN3cej8wdG5m8FjXkoc3oGglp4HNgxiPZa5Yy6C0vlTC7 .OEH8flsbMbM4XamK8AJuMZSolUpIcxqtlTF96mnVsYPLrkjTK3DrJkHdHrHj_mZx0y7z_IdsV.Z Ej6W_VoP06KKZ7oQKVbrF9S7h1I0tGaVOD84Zpr5x3nFeEw5KRxHwqa_Z8wVwV1.GPnCYhaxgD2y NoVXEXuSCVSJBaynu_Th3JBoWicTxq1_98g04O34HnGsgKHT80MZoauzZ4GHF8VTF0gNcJ7OEIXv JZf3OKFeYGz6BQcp9TJOjYHUDGHcXvReZBtxgr7f6ApOEL._HL_41kJXSkGwT6mh1ALoBIekgUmi hEKhxSq1Xo7T5rNFi In-reply-to: <20180530124707.xp6loetwnplkypk2@NUC.doronbehar.com> From: Oliver Kiddle References: <20180526161403.4860-1-doron.behar@gmail.com> <20180526161403.4860-2-doron.behar@gmail.com> <5942.1527504539@thecus> <20180529153821.nmwa5yojlusioxti@NUC.doronbehar.com> <13666.1527631249@thecus> <20180530124707.xp6loetwnplkypk2@NUC.doronbehar.com> To: zsh-workers@zsh.org Subject: Re: [PATCH 1/1] Squashed commit of the following: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16603.1527694987.1@thecus> Date: Wed, 30 May 2018 17:43:07 +0200 Message-ID: <16604.1527694987@thecus> Doron Behar wrote: > O.K, I used `ret` instead yet currently I don't see any use in this > variable since I didn't structured the completion file with `return ret` > at the end of any of the functions as I've seen in other completion > functions I read. You need something like it in the final function. You're calling _arguments and ignoring the return status from it. This can break things - approximate completion mostly. It's only really that function where you need it. > Jesus, using `zstyle` is complicated, I hope I'll master this skill one > day.. Where can I find in the documentation more explanations about the > relation between zstyle and completion functions? It looks worse than it is. You can see the styles and contexts for a particular completion by pressing Ctrl-X h instead of Tab. With a numeric argument (Escape 1 for emacs mode) it provides more detail. Oliver