# HG changeset patch # User Richard M. Stallman # Date 1072733837 0 # Node ID 6fddc60d9cbcaaec3cc4e63a63fc04cc7b2117af # Parent 5bf3c4457aa3248ea35e78352e428c08d3af10b0 (Modifying Strings): Add clear-string. (Text Comparison): Add assoc-string and remove assoc-ignore-case, assoc-ignore-representation. diff -r 5bf3c4457aa3 -r 6fddc60d9cbc lispref/strings.texi --- a/lispref/strings.texi Mon Dec 29 21:35:37 2003 +0000 +++ b/lispref/strings.texi Mon Dec 29 21:37:17 2003 +0000 @@ -379,6 +379,14 @@ character currently present at that point in @var{string}. @end defun + To clear out a string that contained a password, use +@code{clear-string}: + +@defun clear-string string +This clears the contents of @var{string} to zeros +and may change its length. +@end defun + @need 2000 @node Text Comparison @section Comparison of Characters and Strings @@ -518,13 +526,10 @@ portion) is less. @end defun -@defun assoc-ignore-case key alist -@defunx assoc-ignore-representation key alist -These functions work like @code{assoc}, except that @var{key} must be -a string, all elements of @var{alist} must be cons cells whose -@sc{car} is a string, and comparison is done using -@code{compare-strings}. @code{assoc-ignore-case} ignores case -differences, whereas @code{assoc-ignore-representation} does not. +@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. @xref{Association Lists}. @end defun