From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6030 invoked by alias); 14 Feb 2013 00:40:25 -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: 17639 Received: (qmail 4822 invoked from network); 14 Feb 2013 00:40:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <130213163957.ZM1064@torch.brasslantern.com> Date: Wed, 13 Feb 2013 16:39:57 -0800 In-reply-to: <20130213203044.3c9d5c27@pws-pc.ntlworld.com> Comments: In reply to Peter Stephenson "Re: Caching variables during completion" (Feb 13, 8:30pm) References: <511B6069.1070302@desy.de> <130213093924.ZM831@torch.brasslantern.com> <20130213203044.3c9d5c27@pws-pc.ntlworld.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Caching variables during completion MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Feb 13, 8:30pm, Peter Stephenson wrote: } } Bart Schaefer wrote: } > zstyle ':completion:*' completer _xrcache _oldlist _expand _complete # etc. } } I don't see why you couldn't put that inside the completion function } that needs the cache True, you could put it in the completion function, but what if there's more than one completion function that wants to share the same cache? Which reminds me that I've never really bothered to understand how the _store_cache/_retrieve_cache stuff is supposed to work. I suspect it would be overkill here.