zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Han Pingtian <hanpt@linux.vnet.ibm.com>, zsh-user <zsh-users@zsh.org>
Subject: Re: When _ra_comp() in _regex_arguments() gets called ?
Date: Sat, 28 Mar 2015 21:43:27 -0700	[thread overview]
Message-ID: <150328214327.ZM19465@torch.brasslantern.com> (raw)
In-Reply-To: <20150329015648.GA2856@localhost.localdomain>

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.


      reply	other threads:[~2015-03-29  4:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-29  1:56 Han Pingtian
2015-03-29  4:43 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=150328214327.ZM19465@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=hanpt@linux.vnet.ibm.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).