From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20175 invoked by alias); 29 Mar 2015 04:43:33 -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: 20043 Received: (qmail 8245 invoked from network); 29 Mar 2015 04:43:32 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=2NufKEyUYkOy7eqSXiOmIQ2Bw1tANLyB4wbGRki/odY=; b=mZp/04tlUhVTs6MK3E1Dnz45aGFc2xX8N47WiI814SYHDm1jWvA7Xhr6W31TzQkV0A qqLDAFT0Pj6Ofx1nAFR4gfDd14ViQ8ennvj+rfAjWo9VaHkXuuNK/QquilRn3jXTic9r dKMUenRpohmKn+oZaR8L516D2gu5jUJ7Y8iqOa4c03haANgcxjVh40Vkxs5nS3C/+V1b MMrN+eY2+Uo5Vj8OQm5PVts+rJJlSlQ7Sc/2qENl9469pr6GCLuV2XYscygwyLVR9nvs /LLEm8iOGrLav2LrIY8O7qx5E2bQemKtByYM3O21U8bBzNTYbrfY4Tg98VvqA6kVVFWJ qrjA== X-Gm-Message-State: ALoCoQl8qdPLdZDQxCbSPBFVz0LkvpbORF6nehHe5oxT3U95tVE80O15JQPJhL9sZoGmtjvf2NGO X-Received: by 10.183.11.97 with SMTP id eh1mr21603979obd.7.1427604210362; Sat, 28 Mar 2015 21:43:30 -0700 (PDT) From: Bart Schaefer Message-Id: <150328214327.ZM19465@torch.brasslantern.com> Date: Sat, 28 Mar 2015 21:43:27 -0700 In-Reply-To: <20150329015648.GA2856@localhost.localdomain> Comments: In reply to Han Pingtian "When _ra_comp() in _regex_arguments() gets called ?" (Mar 29, 9:56am) References: <20150329015648.GA2856@localhost.localdomain> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Han Pingtian , zsh-user Subject: Re: When _ra_comp() in _regex_arguments() gets called ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 29, 9:56am, Han Pingtian wrote: } Subject: When _ra_comp() in _regex_arguments() gets called ? } } Hey, } } I'm trying to understand the utility function "_regex_arguments()" and } stuck at when the _ra_comp() is called. This function is placed in array } "regex" something like ":_ra_comp :'compadd aaa'". There is a colon } before its name. What does the colon mean here? It's a delimiter for Modules/zutil.c: rparseelt(), I think. The whole array built with ":_ra_comp ..." elements is passed to the zregexparse builtin, which is one of those functions that implement the internals of completion and which it was not deemed useful to explain to someone reading "man zsh". Unfortunately it was never documented for the developers, either. The best reference is zsh-workers/9154 and 9156, and the original shell code in workers/7720 which zregexparse replaced.