zsh-users
 help / color / mirror / code / Atom feed
* When _ra_comp() in _regex_arguments() gets called ?
@ 2015-03-29  1:56 Han Pingtian
  2015-03-29  4:43 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Han Pingtian @ 2015-03-29  1:56 UTC (permalink / raw)
  To: zsh-user

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?

Thanks!


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: When _ra_comp() in _regex_arguments() gets called ?
  2015-03-29  1:56 When _ra_comp() in _regex_arguments() gets called ? Han Pingtian
@ 2015-03-29  4:43 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2015-03-29  4:43 UTC (permalink / raw)
  To: Han Pingtian, zsh-user

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-29  4:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-29  1:56 When _ra_comp() in _regex_arguments() gets called ? Han Pingtian
2015-03-29  4:43 ` Bart Schaefer

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).