diff options
| author | Kim F. Storm | 2007-02-21 13:52:27 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2007-02-21 13:52:27 +0000 |
| commit | 0dea6c8b706acddb0ea188307f924401dbebf093 (patch) | |
| tree | 148658588fdb54d0a530859953339a1b3407214b | |
| parent | d8506697cc4ed039cc2d6cb8a397e3ca58d5b648 (diff) | |
| download | emacs-0dea6c8b706acddb0ea188307f924401dbebf093.tar.gz emacs-0dea6c8b706acddb0ea188307f924401dbebf093.zip | |
(Text Comparison): Mention that assoc-string
converts symbols to strings before testing.
| -rw-r--r-- | lispref/strings.texi | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lispref/strings.texi b/lispref/strings.texi index 207624f9642..e1824518abd 100644 --- a/lispref/strings.texi +++ b/lispref/strings.texi | |||
| @@ -535,11 +535,12 @@ portion) is less. | |||
| 535 | 535 | ||
| 536 | @defun assoc-string key alist &optional case-fold | 536 | @defun assoc-string key alist &optional case-fold |
| 537 | This function works like @code{assoc}, except that @var{key} must be a | 537 | This function works like @code{assoc}, except that @var{key} must be a |
| 538 | string, and comparison is done using @code{compare-strings}. If | 538 | string or symbol, and comparison is done using @code{compare-strings}. |
| 539 | @var{case-fold} is non-@code{nil}, it ignores case differences. | 539 | Symbols are converted to strings before testing. |
| 540 | If @var{case-fold} is non-@code{nil}, it ignores case differences. | ||
| 540 | Unlike @code{assoc}, this function can also match elements of the alist | 541 | Unlike @code{assoc}, this function can also match elements of the alist |
| 541 | that are strings rather than conses. In particular, @var{alist} can | 542 | that are strings or symbols rather than conses. In particular, @var{alist} can |
| 542 | be a list of strings rather than an actual alist. | 543 | be a list of strings or symbols rather than an actual alist. |
| 543 | @xref{Association Lists}. | 544 | @xref{Association Lists}. |
| 544 | @end defun | 545 | @end defun |
| 545 | 546 | ||