changeset 76040:e303881b06eb

(Text Comparison): Mention that assoc-string converts symbols to strings before testing.
author Kim F. Storm <storm@cua.dk>
date Wed, 21 Feb 2007 13:52:27 +0000
parents 7765d3cb6a48
children 457dc583fa98
files lispref/strings.texi
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/strings.texi	Wed Feb 21 08:28:01 2007 +0000
+++ b/lispref/strings.texi	Wed Feb 21 13:52:27 2007 +0000
@@ -535,11 +535,12 @@
 
 @defun assoc-string key alist &optional case-fold
 This function works like @code{assoc}, except that @var{key} must be a
-string, and comparison is done using @code{compare-strings}.  If
-@var{case-fold} is non-@code{nil}, it ignores case differences.
+string or symbol, and comparison is done using @code{compare-strings}.
+Symbols are converted to strings before testing.
+If @var{case-fold} is non-@code{nil}, it ignores case differences.
 Unlike @code{assoc}, this function can also match elements of the alist
-that are strings rather than conses.  In particular, @var{alist} can
-be a list of strings rather than an actual alist.
+that are strings or symbols rather than conses.  In particular, @var{alist} can
+be a list of strings or symbols rather than an actual alist.
 @xref{Association Lists}.
 @end defun