aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lispref/minibuf.texi18
1 files changed, 10 insertions, 8 deletions
diff --git a/lispref/minibuf.texi b/lispref/minibuf.texi
index 0e855b499ae..eb60d99fa62 100644
--- a/lispref/minibuf.texi
+++ b/lispref/minibuf.texi
@@ -595,9 +595,9 @@ the higher-level completion features that do use the minibuffer.
595@defun try-completion string collection &optional predicate 595@defun try-completion string collection &optional predicate
596This function returns the longest common substring of all possible 596This function returns the longest common substring of all possible
597completions of @var{string} in @var{collection}. The value of 597completions of @var{string} in @var{collection}. The value of
598@var{collection} must be a list of strings, an alist, an obarray, a 598@var{collection} must be a list of strings or symbols, an alist, an
599hash table, or a function that implements a virtual set of strings 599obarray, a hash table, or a function that implements a virtual set of
600(see below). 600strings (see below).
601 601
602Completion compares @var{string} against each of the permissible 602Completion compares @var{string} against each of the permissible
603completions specified by @var{collection}; if the beginning of the 603completions specified by @var{collection}; if the beginning of the
@@ -610,11 +610,13 @@ match.
610 610
611If @var{collection} is an alist (@pxref{Association Lists}), the 611If @var{collection} is an alist (@pxref{Association Lists}), the
612permissible completions are the elements of the alist that are either 612permissible completions are the elements of the alist that are either
613strings or conses whose @sc{car} is a string. Other elements of the 613strings, symbols, or conses whose @sc{car} is a string or symbol.
614alist are ignored. (Remember that in Emacs Lisp, the elements of 614Symbols are converted to strings using @code{symbol-name}.
615alists do not @emph{have} to be conses.) As all elements of the alist 615Other elements of the alist are ignored. (Remember that in Emacs Lisp,
616can be strings, this case actually includes lists of strings, even 616the elements of alists do not @emph{have} to be conses.) As all
617though we usually do not think of such lists as alists. 617elements of the alist can be strings, this case actually includes
618lists of strings or symbols, even though we usually do not think of
619such lists as alists.
618 620
619@cindex obarray in completion 621@cindex obarray in completion
620If @var{collection} is an obarray (@pxref{Creating Symbols}), the names 622If @var{collection} is an obarray (@pxref{Creating Symbols}), the names