From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29824 invoked from network); 1 Apr 2000 05:14:47 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 1 Apr 2000 05:14:47 -0000 Received: (qmail 29806 invoked by alias); 1 Apr 2000 05:14:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10372 Received: (qmail 29786 invoked from network); 1 Apr 2000 05:14:40 -0000 From: "Bart Schaefer" Message-Id: <1000401051434.ZM13987@candle.brasslantern.com> Date: Sat, 1 Apr 2000 05:14:34 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: PATCH: Doc: Module-supplied builtin cross-refs MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii This adds brief cross-references from the builtins section to those builtins that are documented in modules. This uses a yodl macro, so at some point perhaps we can come up with a clever way to in-line the actual descriptions of those builtins. The other part adds function index entries for all the zutil builtins. Index: Doc/Zsh/builtins.yo =================================================================== @@ -17,6 +17,12 @@ Same as tt(ARG2). )\ )\ +def(module)(2)(\ +item(tt(ARG1))( +See ifzman(the section `The ARG2 Module' in zmanref(zshmodules))\ +ifnzman(noderef(The ARG2 Module)). +)\ +)\ startitem() prefix(-) findex(.) @@ -113,6 +119,7 @@ Put each specified var(job) in the background, or the current job if none is specified. ) +module(bindkey)(zsh/zle) findex(break) cindex(exiting loops) cindex(loops, exiting) @@ -126,6 +133,7 @@ Executes the builtin var(name), with the given var(args). ) alias(bye)(exit) +module(cap)(zsh/cap) findex(cd) cindex(directories, changing) xitem(tt(cd) [ tt(-sLP) ] [ var(arg) ]) @@ -162,7 +170,16 @@ followed regardless of the state of the tt(CHASE_LINKS) option. ) alias(chdir)(cd) +module(clone)(zsh/clone) prefix(command) +module(comparguments)(zsh/computil) +module(compcall)(zsh/compctl) +module(compctl)(zsh/compctl) +module(compdescribe)(zsh/computil) +module(compquote)(zsh/computil) +module(comptags)(zsh/computil) +module(comptry)(zsh/computil) +module(compvalues)(zsh/computil) findex(continue) cindex(loops, continuing) cindex(continuing loops) @@ -390,6 +407,7 @@ item(tt(functions) [ {tt(PLUS())|tt(-)}tt(UXmtu) ] [ var(name) ... ])( Equivalent to tt(typeset -f). ) +module(getcap)(zsh/cap) findex(getln) cindex(line, reading) cindex(reading a line) @@ -836,6 +854,7 @@ $((128PLUS()$1)))' will return the same status as if the signal had not been trapped. ) +module(sched)(zsh/sched) findex(set) cindex(parameters, listing) cindex(parameters, positional) @@ -860,6 +879,7 @@ standard output. If the only argument is `tt(PLUS())', the names of all parameters are printed. ) +module(setcap)(zsh/cap) findex(setopt) cindex(options, setting) item(tt(setopt) [ {tt(PLUS())|tt(-)}var(options) | \ @@ -885,6 +905,7 @@ Same as tt(.), except that the current directory is always searched and is always searched first, before directories in tt($path). ) +module(stat)(zsh/stat) findex(suspend) cindex(shell, suspending) cindex(suspending the shell) @@ -1236,6 +1257,7 @@ (which should be quoted to preserve them from being interpreted as glob patterns), and all options with names matching these patterns are unset. ) +module(vared)(zsh/zle) findex(wait) cindex(waiting for jobs) cindex(jobs, waiting for) @@ -1415,6 +1437,9 @@ independent and if it is read or mapped, only one half of the file is actually used (and mapped). ) +module(zformat)(zsh/zutil) +module(zftp)(zsh/zftp) +module(zle)(zsh/zle) findex(zmodload) cindex(modules, loading) cindex(loading modules) @@ -1537,4 +1562,9 @@ these definitions). This is true even for systems that don't support dynamic loading of modules. ) +module(zparseopts)(zsh/zutil) +module(zprof)(zsh/zprof) +module(zpty)(zsh/zpty) +module(zregexparse)(zsh/zutil) +module(zstyle)(zsh/zutil) enditem() Index: Doc/Zsh/mod_zutil.yo =================================================================== @@ -6,6 +6,7 @@ The tt(zsh/zutil) module only adds some builtins: startitem() +findex(zstyle) xitem(tt(zstyle) [ tt(-L) ]) xitem(tt(zstyle) [ tt(-) | tt(-)tt(-) ] var(pattern) var(style) var(strings) ...) xitem(tt(zstyle -d) [ var(pattern) [ var(styles) ... ] ]) @@ -79,6 +80,7 @@ The tt(-m) option can be used to match a value. It returns zero if the var(pattern) matches at least one of the strings in the value. ) +findex(zformat) xitem(tt(zformat -f) var(param) var(format) var(specs) ...) item(tt(zformat -a) var(array) var(sep) var(specs) ...)( This builtin provides to different forms of formatting. The first form @@ -113,9 +115,11 @@ are not used to determine how the other strings have to be aligned. The resulting strings are stored in the var(array). ) +findex(zregexparse) item(tt(zregexparse))( This implements the internals of the `tt(_regex_arguments)'. ) +findex(zparseopts) item(tt(zparseopts) [ tt(-D) ] [ tt(-a) var(array) ] [ tt(-A) var(assoc) ] var(specs))( This builtin simplifies the parsing of options in the positional parameters. Each var(spec) describes one option and should be of the -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com