diff options
| author | Kim F. Storm | 2005-02-22 20:50:05 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-02-22 20:50:05 +0000 |
| commit | a41c174fd4a43ab3e6a84eecc91b93f1cdada7de (patch) | |
| tree | c603195f767a8add0d89a17c9dc4646c757e62a9 | |
| parent | 3809648a7632e22bd9168b094eed89a40c0aae59 (diff) | |
| download | emacs-a41c174fd4a43ab3e6a84eecc91b93f1cdada7de.tar.gz emacs-a41c174fd4a43ab3e6a84eecc91b93f1cdada7de.zip | |
(Basic Completion): Allow symbols in addition to
strings in try-completion and all-completions.
| -rw-r--r-- | lispref/minibuf.texi | 18 |
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 |
| 596 | This function returns the longest common substring of all possible | 596 | This function returns the longest common substring of all possible |
| 597 | completions of @var{string} in @var{collection}. The value of | 597 | completions 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 |
| 599 | hash table, or a function that implements a virtual set of strings | 599 | obarray, a hash table, or a function that implements a virtual set of |
| 600 | (see below). | 600 | strings (see below). |
| 601 | 601 | ||
| 602 | Completion compares @var{string} against each of the permissible | 602 | Completion compares @var{string} against each of the permissible |
| 603 | completions specified by @var{collection}; if the beginning of the | 603 | completions specified by @var{collection}; if the beginning of the |
| @@ -610,11 +610,13 @@ match. | |||
| 610 | 610 | ||
| 611 | If @var{collection} is an alist (@pxref{Association Lists}), the | 611 | If @var{collection} is an alist (@pxref{Association Lists}), the |
| 612 | permissible completions are the elements of the alist that are either | 612 | permissible completions are the elements of the alist that are either |
| 613 | strings or conses whose @sc{car} is a string. Other elements of the | 613 | strings, symbols, or conses whose @sc{car} is a string or symbol. |
| 614 | alist are ignored. (Remember that in Emacs Lisp, the elements of | 614 | Symbols are converted to strings using @code{symbol-name}. |
| 615 | alists do not @emph{have} to be conses.) As all elements of the alist | 615 | Other elements of the alist are ignored. (Remember that in Emacs Lisp, |
| 616 | can be strings, this case actually includes lists of strings, even | 616 | the elements of alists do not @emph{have} to be conses.) As all |
| 617 | though we usually do not think of such lists as alists. | 617 | elements of the alist can be strings, this case actually includes |
| 618 | lists of strings or symbols, even though we usually do not think of | ||
| 619 | such lists as alists. | ||
| 618 | 620 | ||
| 619 | @cindex obarray in completion | 621 | @cindex obarray in completion |
| 620 | If @var{collection} is an obarray (@pxref{Creating Symbols}), the names | 622 | If @var{collection} is an obarray (@pxref{Creating Symbols}), the names |