From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13470 invoked from network); 20 Jul 1999 12:51:59 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 20 Jul 1999 12:51:59 -0000 Received: (qmail 9640 invoked by alias); 20 Jul 1999 12:51:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7223 Received: (qmail 9633 invoked from network); 20 Jul 1999 12:51:40 -0000 Message-Id: <9907201220.AA40222@ibmth.df.unipi.it> To: zsh-workers@sunsite.auc.dk Subject: Re: 3.1.6 Documentation needs a once-over for indexing In-Reply-To: ""Bart Schaefer""'s message of "Mon, 19 Jul 1999 17:19:42 DFT." <990719171942.ZM10279@candle.brasslantern.com> Date: Tue, 20 Jul 1999 14:20:42 +0200 From: Peter Stephenson "Bart Schaefer" wrote: > A lot of the new completion stuff is in the manual but not indexed for the > info browser. Here are some more index entries, and some missing dependencies for the texinfo manual. I still hope to have time to look through the entire manual for errors and omissions. However, you typically don't notice something's missing from the index until you go and look for it, so I would appreciate more suggestions. Some of the texinfo node names are a little to generic for info, e.g. the node `Initialization' means completion system initialization, `Installation' means zftp installation. Also, the long index entries make the indexes a bit messy, but it's hard to be descriptive enough otherwise. (Apparently you don't use the plural `indices' in the case of indexes.) --- Doc/Makefile.in.ind Tue Jul 20 10:02:06 1999 +++ Doc/Makefile.in Tue Jul 20 14:10:07 1999 @@ -52,13 +52,15 @@ # yodl documentation YODLDOC = $(MAN) zsh.texi YODLSRC = zmacros.yo zman.yo ztexi.yo Zsh/arith.yo Zsh/builtins.yo \ -Zsh/compat.yo Zsh/compctl.yo Zsh/cond.yo Zsh/exec.yo Zsh/expn.yo \ +Zsh/compat.yo Zsh/compctl.yo Zsh/compsys.yo Zsh/compwid.yo Zsh/cond.yo \ +Zsh/exec.yo Zsh/expn.yo \ Zsh/filelist.yo Zsh/files.yo Zsh/func.yo Zsh/grammar.yo Zsh/guide.yo \ Zsh/index.yo Zsh/intro.yo Zsh/invoke.yo Zsh/jobs.yo Zsh/metafaq.yo \ -Zsh/modules.yo Zsh/mod_cap.yo Zsh/compwid.yo Zsh/compsys.yo \ +Zsh/modules.yo Zsh/mod_cap.yo \ Zsh/mod_clone.yo Zsh/mod_comp1.yo Zsh/mod_compctl.yo Zsh/mod_complist.yo \ Zsh/mod_deltochar.yo Zsh/mod_example.yo Zsh/mod_files.yo \ -Zsh/mod_mapfile.yo Zsh/mod_stat.yo Zsh/mod_zle.yo Zsh/options.yo \ +Zsh/mod_mapfile.yo Zsh/mod_parameter.yo Zsh/mod_sched.yo \ +Zsh/mod_stat.yo Zsh/mod_zftp.yo Zsh/mod_zle.yo Zsh/options.yo \ Zsh/params.yo Zsh/prompt.yo Zsh/redirect.yo Zsh/restricted.yo \ Zsh/seealso.yo Zsh/zftpsys.yo Zsh/zle.yo --- Doc/Zsh/compsys.yo.ind Tue Jul 13 14:29:25 1999 +++ Doc/Zsh/compsys.yo Tue Jul 20 12:03:22 1999 @@ -1,6 +1,6 @@ texinode(Completion System)(Zftp Function System)(Zsh Modules)(Top) chapter(Completion System) -cindex(completion, system) +cindex(completion system) cindex(completion, programmable) cindex(completion, controlling) sect(Description) @@ -22,6 +22,8 @@ texinode(Initialization)(Control Functions)()(Completion System) sect(Initialization) +findex(compinstall) +cindex(completion system, installing) The function tt(compinstall) can be run by a user to set up the completion system for use, which also provides options for more advanced usage. @@ -60,6 +62,8 @@ a `tt(.)' in front, e.g. `tt(.expand-or-complete)'. subsect(Use of compinit) +findex(compinit) +cindex(completion system, initializing) This section describes the use of tt(compinit) to initialize completion for the current session when run directly by the user; if you have run @@ -97,6 +101,7 @@ not already in the function search path. subsect(Autoloaded files) +cindex(completion system, autoloaded functions) The convention for autoloaded functions used in completion is that they start with an underscore; as already mentioned, the tt(fpath/FPATH) @@ -172,6 +177,8 @@ The tt(compinit) file defines the following functions, which may also be called directly by the user. +findex(compdef) +cindex(completion system, adding definitions) startitem() xitem(tt(compdef) [ tt(-an) ] var(function names...)) xitem(tt(compdef -d) var(names...)) @@ -201,9 +208,12 @@ var(function) autoloadable (exactly equivalent to tt(autoload )var(function)). ) +findex(compconf) +cindex(completion system, configuring) xitem(tt(compconf) var(definitions...)) xitem(tt(compconf) [ tt(-L) ] ) item(tt(compconf) [ tt(-l) ] [ tt(-L) ] var(keys...))( +vindex(compconfig) Several aspects of the completion system can be configured by the user. The configuration values are stored under the keys described below in the associative array `tt(compconfig)'. After sourcing @@ -228,6 +238,7 @@ texinode(Control Functions)(Completion Functions)(Initialization)(Completion System) sect(Control Functions) +cindex(completion system, choosing completers) The initialization script tt(compinit) redefines all the widgets which perform completion to call the supplied widget @@ -257,6 +268,7 @@ The following completer functions are contained in the distribution (users may write their own): +cindex(completion system, completers) startitem() item(tt(_complete))( This completer generates all possible completions in a context-sensitive @@ -625,6 +637,7 @@ texinode(Completion Functions)(Completion Directories)(Control Functions)(Completion System) sect(Utility Functions) +cindex(completion system, utility functions) Descriptions follow for utility functions that may be useful when writing completion functions. Most of these reside in the @@ -798,6 +811,7 @@ texinode(Completion Directories)(Bindable Commands)(Completion Functions)(Completion System) sect(Completion Directories) +cindex(completion system, directory structure) In the source distribution, the files are contained in various subdirectories of the tt(Completion) directory. They may have been @@ -832,6 +846,7 @@ texinode(Bindable Commands)()(Completion Directories)(Completion System) sect(Bindable Commands) +cindex(completion system, bindable commands) In addition to the context-dependent completions provided, which are expected to work in an intuitively obvious way, there are a few widgets --- Doc/Zsh/compwid.yo.ind Tue Jul 20 11:30:02 1999 +++ Doc/Zsh/compwid.yo Tue Jul 20 11:56:25 1999 @@ -51,20 +51,24 @@ entered. startitem() +vindex(words) item(tt(words))( This array contains the words present on the command line currently being edited. ) +vindex(CURRENT) item(tt(CURRENT))( This is the number of the current word, i.e. the word the cursor is currently on in the tt(words) array. Note that this value is only correct if the tt(ksharrays) options is not set. ) +vindex(PREFIX) item(tt(PREFIX))( Initially this will be set to the part of the current word from the beginning of the word up to the position of the cursor; it may be altered to give a common prefix for all matches. ) +vindex(IPREFIX) item(tt(IPREFIX))( Initially this will be set to the empty string. It functions like tt(PREFIX), and gives a string which precedes the one in tt(PREFIX) and is @@ -78,6 +82,7 @@ causes the part of the prefix up to and including the first equal sign not to be treated as part of a matched string. ) +vindex(QIPREFIX) item(tt(QIPREFIX))( This parameter is read-only and contains the quoted string up to the word being completed. E.g. when completing `tt("foo)', this parameter @@ -85,6 +90,7 @@ (see below), and the original string was `tt("foo bar)' with the cursor on the `tt(bar)', this parameter contains `tt("foo )'. ) +vindex(SUFFIX) item(tt(SUFFIX))( Initially this will be set to the part of the current word from the cursor position to the end; it may be altered to give a common suffix for @@ -92,14 +98,18 @@ set, as otherwise the whole word on the command line is treated as a prefix. ) +vindex(ISUFFIX) item(tt(ISUFFIX))( As tt(IPREFIX), but for a suffix that should not be considered part of the matches; note that the tt(ISUFFIX) string follows the tt(SUFFIX) string. ) +vindex(QISUFFIX) item(tt(QISUFFIX))( Like tt(QIPREFIX), but containing the suffix. ) +vindex(compstate) +cindex(completion widgets, examining and setting state in) item(tt(compstate))( This is an associative array with various keys and values that the completion code uses to exchange information with the completion widget. @@ -327,6 +337,7 @@ texinode(Builtin Commands)(Condition Codes)(Special Parameters)(Completion Widgets) sect(Builtin Commands) startitem() +cindex(completion widgets, generating matches with flags) findex(compgen) item(tt(compgen) var(flags ...))( @@ -352,6 +363,8 @@ The return value is zero if at least one match was added and non-zero otherwise. ) +findex(compadd) +cindex(completion widgets, adding specified matches) xitem(tt(compadd) [ tt(-qQfnUam) ] [ tt(-F) var(array) ]) xitem([ tt(-P) var(prefix) ] [ tt(-S) var(suffix) ]) xitem([ tt(-p) var(hidden-prefix) ] [ tt(-s) var(hidden-suffix) ]) @@ -557,6 +570,8 @@ ) enditem() ) +findex(compset) +cindex(completion widgets, modifying special parameters) xitem(tt(compset -p) var(number)) xitem(tt(compset -P) [ var(number) ] var(pattern)) xitem(tt(compset -s) var(number)) @@ -663,6 +678,7 @@ texinode(Condition Codes)(Examples)(Builtin Commands)(Completion Widgets) sect(Condition Codes) +cindex(completion widgets, condition codes) The following additional condition codes for use within the tt([[ ... ]]) construct are available in completion widgets. These work on the special @@ -688,6 +704,7 @@ texinode(Examples)()(Condition Codes)(Completion Widgets) sect(Examples) +cindex(completion widgets, examples) The first step is to define the widget: @@ -712,3 +729,4 @@ ifzman(zmanref(zshcompsys))\ ifnzman(noderef(Completion System))\ . + --- Doc/Zsh/mod_complist.yo.ind Thu Jul 15 10:28:00 1999 +++ Doc/Zsh/mod_complist.yo Tue Jul 20 12:06:03 1999 @@ -1,6 +1,7 @@ texinode(The complist Module)(The deltochar Module)(The compctl Module)(Zsh Modules) sect(The complist Module) cindex(completion, listing) +cindex(completion, coloured listings) The tt(complist) module offers two extensions to completion listings: the ability to highlight matches in such a list and a different style of menu-completion. @@ -12,6 +13,8 @@ dynamic loading, `tt(zmodload complist)' is required. subsect(Parameters) +vindex(ZLS_COLORS) +vindex(ZLS_COLOURS) The parameters tt(ZLS_COLORS) and tt(ZLS_COLOURS) describe how matches are highlighted. To turn on highlighting an empty value suffices, in which case all the default values given below will be used. The format of the @@ -78,6 +81,9 @@ the default values will have no visual effect. subsect(Menu selection) +cindex(completion, selecting by cursor) +vindex(SELECTMIN) +tindex(menu-select) The tt(complist) module also offers an alternative style of selecting matches from a list, called menu-selection, which can be used if the shell is set up to return to the last prompt after showing a --- Doc/Zsh/mod_zftp.yo.ind Mon Jun 14 09:12:39 1999 +++ Doc/Zsh/mod_zftp.yo Tue Jul 20 13:49:42 1999 @@ -240,6 +240,7 @@ of them are special. startitem() +vindex(ZFTP_TMOUT) item(tt(ZFTP_TMOUT))( Integer. The time in seconds to wait for a network operation to complete before returning an error. If this is not set when the @@ -374,14 +375,14 @@ cindex(zftp, functions) startitem() -findex(zftp_chpwd) +findex(zftp_chpwd, specification) item(tt(zftp_chpwd))( If this function is set by the user, it is called every time the directory changes on the server, including when a user is logged in, or when a connection is closed. In the last case, tt($ZFTP_PWD) will be unset; otherwise it will reflect the new directory. ) -findex(zftp_progress) +findex(zftp_progress, specification) item(tt(zftp_progress))( If this function is set by the user, it will be called during a tt(get), tt(put) or tt(append) operation each time sufficient data --- Doc/Zsh/mod_zle.yo.ind Wed Jul 7 09:32:06 1999 +++ Doc/Zsh/mod_zle.yo Tue Jul 20 11:55:07 1999 @@ -218,6 +218,7 @@ ifnzman(noderef(Zsh Line Editor))\ . ) +citem(completion widgets, creating) item(tt(-C) var(widget) var(completion-widget) var(function))( Create a user-defined completion widget names var(widget). The completion widget will behave like the built-in completion-widget --- Doc/Zsh/zftpsys.yo.ind Thu Jun 17 14:03:24 1999 +++ Doc/Zsh/zftpsys.yo Tue Jul 20 12:15:54 1999 @@ -1,6 +1,7 @@ texinode(Zftp Function System)()(Completion System)(Top) chapter(Zftp Function System) -cindex(zftp, function system) +cindex(zftp function system) +cindex(FTP, functions for using shell as client) sect(Description) This describes the set of shell functions supplied with the source @@ -70,6 +71,7 @@ subsect(Opening a connection) startitem() +findex(zfparams) item(tt(zfparams [ var(host) [ var(user) [ var(password) ... ] ] ]))( Set or show the parameters for a future tt(zfopen) with no arguments. If no arguments are given, the current parameters are displayed (the password @@ -80,6 +82,7 @@ As tt(zfopen) calls tt(zfparams) to store the parameters, this usually need not be called directly. ) +findex(zfopen) item(tt(zfopen [ -1 ] [ var(host) [ var(user) [ var(password) [ var(account) ] ] ] ]))( If var(host) is present, open a connection to that host under username var(user) with password var(password) (and, on the rare occasions when it @@ -97,6 +100,7 @@ automatically (see below). With the option `tt(-1)', no information is stored. ) +findex(zfanon) item(tt(zfanon [ -1 ] var(host)))( Open a connection var(host) for anonymous FTP. The username used is tt(anonymous). The password (which will be reported the first time) is @@ -108,6 +112,7 @@ subsect(Directory management) startitem() +findex(zfcd) xitem(tt(zfcd [ var(dir) ])) xitem(tt(zfcd -)) item(tt(zfcd var(old) var(new)))( @@ -137,12 +142,14 @@ correct remote host directory. Other named directories of the form `tt(~name)' are not treated in this fashion. ) +findex(zfhere) item(tt(zfhere))( Change directory on the remote server to the one corresponding to the current local directory, with special handling of `tt(~)' as in tt(zfcd). For example, if the current local directory is tt(~/foo/bar), then tt(zfhere) performs the effect of `tt(zfcd ~/foo/bar)'. ) +findex(zfdir) item(tt(zfdir [ -rfd ] [ - ] [ var(dir-options) ] [ var(dir) ]))( Produce a long directory listing. The arguments var(dir-options) and var(dir) are passed directly to the server and their effect is @@ -161,6 +168,7 @@ Also, the option tt(-d) will delete both caches without showing a directory listing. ) +findex(zfdir) item(tt(zfls) [ var(ls-options) ] [ var(dir) ])( List files on the remote server. With no arguments, this will produce a simple list of file names for the current remote directory. Any arguments @@ -170,12 +178,14 @@ subsect(Status commands) startitem() +findex(zftype) item(tt(zftype) [ var(type) ])( With no arguments, show the type of data to be transferred, usually ASCII or binary. With an argument, change the type: the types `tt(A)' or `tt(ASCII)' for ASCII data and `tt(B)' or `tt(BINARY)', `tt(I)' or `tt(IMAGE)' for binary data are understood case-insensitively. ) +findex(zfstat) item(tt(zfstat) [ -v ])( Show the status of the current or last connection, as well as the status of some of tt(zftp)'s status variables. With the tt(-v) option, a more @@ -193,12 +203,14 @@ tt(zfrtime) below for more information. startitem() +findex(zfget) item(tt(zfget [ -Gt ] var(file1) ...))( Retrieve all the listed files var(file1) ... one at a time from the remote server. If a file contains a `tt(/)', the full name is passed to the remote server, but the file is stored locally under the name given by the part after the final `tt(/)'. ) +findex(zfuget) item(tt(zfuget [ -Gvst ] var(file1) ...))( As tt(zfget), but only retrieve files where the version on the remote server is newer (has a later modification time), or where the local file @@ -209,6 +221,7 @@ option tt(-v), the command prints more information about the files while it is working out whether or not to transfer them. ) +findex(zfcget) item(tt(zfcget [ -Gt ] var(file1) ...))( As tt(zfget), but if any of the local files exists, and is shorter than the corresponding remote file, the command assumes that it is the result of @@ -218,6 +231,7 @@ Note that this requires a commonly implemented, but non-standard, version of the FTP protocol, so is not guaranteed to work on all servers. ) +findex(zfgcp) xitem(tt(zfgcp [ -Gt ] var(remote-file) var(local-file))) item(tt(zfgcp [ -Gt ] var(rfile1) ... var(ldir)))( This retrieves files from the remote server with arguments behaving @@ -234,16 +248,19 @@ subsect(Sending files) startitem() +findex(zfput) item(tt(zfput var(file1) ...))( Send all the var(file1) ... given separately to the remote server. If a filename contains a `tt(/)', the full filename is used locally to find the file, but only the basename is used for the remote file name. ) +findex(zfuput) item(tt(zfuput [ -vs ] var(file1) ...))( As tt(zfput), but only send files which are newer than their local equivalents, or if the remote file does not exist. The logic is the same as for tt(zfuget), but reversed between local and remote files. ) +findex(zfcput) item(tt(zfcput var(file1) ...))( As tt(zfput), but if any remote file already exists and is shorter than the local equivalent, assume it is the result of an incomplete transfer and @@ -251,6 +268,7 @@ append command is part of the standard set, this is in principle more likely to work than tt(zfcget). ) +findex(zfpcp) xitem(tt(zfpcp var(local-file) var(remote-file))) item(tt(zfpcp var(lfile1) ... var(rdir)))( This sends files to the remote server with arguments behaving similarly to @@ -277,6 +295,7 @@ subsect(Closing the connection) startitem() +findex(zfclose) item(tt(zfclose))( Close the connection. ) @@ -291,6 +310,7 @@ directory where your zsh startup files live (usually tt(~)). startitem() +findex(zfmark) item(tt(zfmark [ )var(bookmark)tt( ]))( If given an argument, mark the current host, user and directory under the name var(bookmark) for later use by tt(zfgoto). If there is no connection @@ -301,6 +321,7 @@ If not given an argument, list the existing bookmarks and the points to which they refer in the form var(user)tt(@)var(host)tt(:)var(directory). ) +findex(zfgoto) item(tt(zfgoto [ -n ] )var(bookmark))( Return to the location given by var(bookmark), as previously set by tt(zfmark). If the location has user `tt(ftp)' or `tt(anonymous)', open @@ -323,11 +344,13 @@ alter tt(zftp_chpwd) and tt(zftp_progress), in particular. startitem() +findex(zfinit) item(tt(zfinit [ -n ]))( As described above, this is used to initialize the zftp function system. The tt(-n) option should be used if the zftp command is already built into the shell. ) +findex(zfautocheck) item(tt(zfautocheck [ -dn ]))( This function is called to implement automatic reopening behaviour, as described in more detail below. The options must appear in the first @@ -338,6 +361,7 @@ variable tt($zflastsession), but the internal host/user/password parameters must also be correctly set. ) +findex(zfcd_match) item(tt(zfcd_match var(prefix) var(suffix)))( This performs matching for completion of remote directory names. If the remote server is UNIX, it will attempt to persuade the server to list the @@ -346,6 +370,7 @@ completes all files, not just directories. On some systems, directories may not even look like filenames. ) +findex(zfget_match) item(tt(zfget_match var(prefix) var(suffix)))( This performs matching for completion of remote filenames. It caches files for the current directory (only) in the shell parameter tt($zftp_fcache). @@ -353,12 +378,14 @@ also works when called from a widget-style completion function with var(prefix) and var(suffix) set appropriately. ) +findex(zfrglob) item(tt(zfrglob var(varname)))( Perform remote globbing, as describes in more detail below. var(varname) is the name of a variable containing the pattern to be expanded; if there were any matches, the same variable will be set to the expanded set of filenames on return. ) +findex(zfrtime) item(tt(zfrtime var(lfile) var(rfile) [ var(time) ]))( Set the local file var(lfile) to have the same modification time as the remote file var(rfile), or the explicit time var(time) in FTP format @@ -368,6 +395,7 @@ GMT to local time. This is unfortunately difficult to do using shell code alone. ) +findex(zftp_chpwd, supplied version) item(tt(zftp_chpwd))( This function is called every time a connection is opened, or closed, or the remote directory changes. This version alters the title bar of an @@ -385,6 +413,7 @@ fits in well. ) +findex(zftp_progress, supplied version) item(tt(zftp_progress))( This function shows the status of the transfer as the percentage of the total so far transferred. It will not write anything unless the output is @@ -399,6 +428,7 @@ sect(Miscellaneous Features) subsect(Remote globbing) +cindex(zftp function system, remote globbing) The commands for retrieving files usually perform filename expansion (globbing) on their arguments; this can be turned off by passing the option @@ -422,6 +452,7 @@ entire list of directory contents. subsect(Automatic and temporary reopening) +cindex(zftp function system, automatic reopening) As described for the tt(zfopen) command, a subsequent tt(zfopen) with no parameters will reopen the connection to the last host (this includes -- Peter Stephenson Tel: +39 050 844536 WWW: http://www.ifh.de/~pws/ Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy