X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=man%2Flispref%2Ffiles.texi;h=7608b4a47357dda45781c7c0a63b91223235da3f;hp=8f1542b46764ac077884ac460fdc50ffd402b31d;hb=72a705551741d6f85a40eea486c222bac482d8dc;hpb=fb022c5b8ea6aca36b9661a6b2707afdd07e4c05 diff --git a/man/lispref/files.texi b/man/lispref/files.texi index 8f1542b..7608b4a 100644 --- a/man/lispref/files.texi +++ b/man/lispref/files.texi @@ -1240,6 +1240,7 @@ as well as Unix syntax. * File Name Expansion:: Converting relative file names to absolute ones. * Unique File Names:: Generating names for temporary files. * File Name Completion:: Finding the completions for a given file name. +* User Name Completion:: Finding the completions for a given user name. @end menu @node File Name Components @@ -1763,6 +1764,41 @@ completion-ignored-extensions @end example @end defopt +@node User Name Completion +@subsection User Name Completion +@cindex user name completion subroutines +@cindex completion, user name + + This section describes low-level subroutines for completing a user +name. For other completion functions, see @ref{Completion}. + +@defun user-name-all-completions partial-username +This function returns a list of all possible completions for a user +whose name starts with @var{partial-username}. The order of the +completions is unpredictable and conveys no useful information. + +The argument @var{partial-username} must be a partial user name +containing no tilde character and no slash. +@end defun + +@defun user-name-completion username +This function completes the user name @var{username}. It returns the +longest prefix common to all user names that start with @var{username}. + +If only one match exists and @var{username} matches it exactly, the +function returns @code{t}. The function returns @code{nil} if no user +name starting with @var{username} exists. +@end defun + +@defun user-name-completion-1 username +This function completes the user name @var{username}, like +@code{user-name-completion}, differing only in the return value. +This function returns the cons of the completion returned by +@code{user-name-completion}, and a boolean indicating whether that +completion was unique. +@end defun + + @node Contents of Directories @section Contents of Directories @cindex directory-oriented functions