From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24180 invoked from network); 27 May 2022 17:47:13 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 May 2022 17:47:13 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1653673633; b=f5RYiykHWhti3MG1dwSL0zrLklxb/QRxIPSiZLW3O2N2a5/0+ZEd3KD7cA1zqbiZgucKIjKHoI MSnsuyCRyyjHzEN5vQPyz7wzb46Lqy1yMdXlb2QBINK8WdMIO8Gr2YQqMPNdtxNmM6tU2GqXgH QOvI/7HUPiqux11IKRjEBCPBqxrGqUbYQ11tjB3skYqijLHDZq2hdB75A6KLS5IatjwzKGcxDQ pA5Sz3nD9N+14kCiRSTcXwdlrXHWmqVftfT2r0zb447cwqOos5qDQCDrVtEL72frhVpVRDUVv9 y/m/ptwK6dC1xS8qDSeZtSVeNMsIHt0yxddWMMoaWHnKFQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out5-smtp.messagingengine.com) smtp.remote-ip=66.111.4.29; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1653673633; bh=/okwbdcUq+Aj9qTbX10y16Yb+fDo63+hYYOuYz01aUM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Subject:To:From:Date:References:In-Reply-To: Message-ID:MIME-Version:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=DGUjWc+kI2ezWweB2P83eOOH3qLaXfcqw4lhU6SyQPXAU31xGAVjY5v5xHgSL6REXzvI5nDNBx uuPap7ch5o/+xQQahTfOSXbeeKZ9i5hL8jGrghSvme30KLeSsWOQ3qyzT+Gi6Xhp1iJcRExIj/ 8HgxBVkFdROAk4FSiIQ4WuL32T+HqUv2j6d/2BCnHaozlqswhwteUobmi/iY+ueDGqxvO1tKw+ u7YnvRHqBtsusoOOSFDs3IG7NI0dB+BlQYMNHQl3XHDEkR+gNt0mtWAYDfitge63KGN7CXy3t6 i/Ff5q1BP0pDmvSbw98gdTJIDaAS5BvylL4iCNy+IZXIyw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Subject:To:From:Date: References:In-Reply-To:Message-Id:Mime-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=n3g2hu32UKEkwjkI19yueNK7K9Ke3Q1BIZisGtxqdCA=; b=ZFWZqCSaUTLj8wsvXjEkoBsU1H GSuImkWKFKhR5uNS1dnT6Wi7JyR4wgqs7CZPOYFZHJpqbaX4i8pX6cGMbfNGJP/u5YFaLF9/VWOpa 4EIA6MvF4GOuO3saqdAs9458lzfJZPgX6tShWc2FAel/B+PE+9Yqn5kb+v9Fut+iwVkTwOCzVsTEB m1A7GEBVanP4YK0UxqDXUQCO8aRrVCCmvWe+GlCTwpsCNQhttLd9IedG4Wc2RWd7fRIpF3hR7DcLh rEVFDxIioYZHln1NAxMkwFsAwdtmHb5BiGaSCb804j3foN7MgYcLuuLOBSOq+3vFchBfNDGODZh5G mH3lJMKg==; Received: from authenticated user by zero.zsh.org with local id 1nue3M-000CQQ-0u; Fri, 27 May 2022 17:47:12 +0000 Authentication-Results: zsh.org; iprev=pass (out5-smtp.messagingengine.com) smtp.remote-ip=66.111.4.29; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out5-smtp.messagingengine.com ([66.111.4.29]:33141) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nue34-000C5v-LN; Fri, 27 May 2022 17:46:56 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 18A445C005B; Fri, 27 May 2022 13:46:53 -0400 (EDT) Received: from imap46 ([10.202.2.96]) by compute2.internal (MEProxy); Fri, 27 May 2022 13:46:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1653673613; x= 1653760013; bh=n3g2hu32UKEkwjkI19yueNK7K9Ke3Q1BIZisGtxqdCA=; b=F 8RLIh+QdjXWk5nC5OyMBacUsE4vugKRFhmmECbhUuGHZIYucnZdejF3uFXUpvZQn FDqfHOPpeVqUvsfUbw+inoFQGdhKliyaWW0BjuLVFDwUif3GqxiFl7zq9AaWmOUV FiZ8Rf/qCA2n2crytMTZ97tvS2YopWQMPxDAefNwKrjfX1AJpX9fDlhtj1mqIUSN KdZjcwtS27Mc6kuNEA2905cyki5XHh1Qlz6lFJqJwZaCtAv4rA/6/4RrjjqwCJHi fgY5f8ql1BZx4Cmwaf38hzTosHoC14p2vN5qjZUTjKjIkMMo2jsUiB/NTeqNpLat vJMKuHlyfRTpIlZYDAMSQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1653673613; x=1653760013; bh=n3g2hu32UKEkwjkI19yueNK7K9Ke 3Q1BIZisGtxqdCA=; b=j4eAk0mVoeVFPiIiUb3PBAW/7ESr64WOjODtmd9L7Uwb pmiCFoTsLD+0tSOw/5CdxWEZfSVTWfHZkGU94U3QbEXv9ajJeD2G+CZi5CXzsFuP ILeChGk5CLysMID3mvWfCg6aa8vsEF7ZEG3Bwroej/o+ixqbst2/MPKirt/waaZF BE0LmNTBQ6I6wPyNC+TdPcBlCictsUm5Lb8hNYqQn+va9POMyDTHREkdG3Rt85BO YHm5SRjZgGlxSVNRN6t/NfSMNqiN04L0O27TmAKVbNI5jAvYzVRWRywVtIjFr9Lw SODUEF0Iifc5zbRHfuwIvjRwQTq+yW65FSyn6AF8Dg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjeelgdduudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedfffgrnhhivghlucfuhhgrhhgrfhdfuceougdrshesuggr nhhivghlrdhshhgrhhgrfhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeeghfetieegje ejgfeugfeujeeijeefhfevveehfffgueetjedvueeihfefkefggeenucffohhmrghinhep rghrtghhlhhinhhugidrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvg X-ME-Proxy: Feedback-ID: i425e4195:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id BE0232A2006C; Fri, 27 May 2022 13:46:52 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <946346f8-5df9-d551-d199-bf62e0267b41@vorpal.se> Date: Fri, 27 May 2022 17:46:32 +0000 From: "Daniel Shahaf" To: "Zsh hackers list" , Vorpal Subject: Re: Programmatically loading completion for another command? Content-Type: text/plain X-Seq: 50300 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Bart Schaefer wrote on Fri, 27 May 2022 17:03 +00:00: > On Fri, May 27, 2022 at 9:30 AM Vorpal wrote: >> >> * How do I trigger loading that file from my completion so I can offer >> completions to the flag --makepkg-args? Is it even possible? > > Something like this should work, no other wrapper needed: > > service=makepkg _sequence $_comps[makepkg] > > In my install the service dispatcher function is _pkgtool not _pacman, There's two different makepkg(1) tools, it seems: the one completed by zsh's _pkgtool file, and Arch Linux' tool, completed by . > so using $_comps[makepkg] in the call to _sequence should get the > right one, whichever. > > (Nod over to Daniel on the _services thread.)