X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/d6930356cabd3036e445cc6a2f668b1fd3e0cde4..fdcf46d33eebc59e56a35fcea186c61aad3c81d0:/doc/lispref/strings.texi diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi index fc356af51b..4e4c239291 100644 --- a/doc/lispref/strings.texi +++ b/doc/lispref/strings.texi @@ -668,7 +668,7 @@ The strings are compared by the numeric values of their characters. For instance, @var{str1} is considered less than @var{str2} if its first differing character has a smaller numeric value. If @var{ignore-case} is non-@code{nil}, characters are converted to -lower-case before comparing them. Unibyte strings are converted to +upper-case before comparing them. Unibyte strings are converted to multibyte for comparison (@pxref{Text Representations}), so that a unibyte string and its conversion to multibyte are always regarded as equal. @@ -685,7 +685,8 @@ specified portion) is less. This function works like @code{assoc}, except that @var{key} must be a 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. +If @var{case-fold} is non-@code{nil}, @var{key} and the elements of +@var{alist} are converted to upper-case before comparison. Unlike @code{assoc}, this function can also match elements of the 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.