aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
authorRichard M. Stallman2003-12-29 21:37:17 +0000
committerRichard M. Stallman2003-12-29 21:37:17 +0000
commit81e65dff20729fc4637f65a1086a2dba46aea415 (patch)
tree23e960b0c4ae99deb763990a441b5ccb620d3c7d /lispref
parent76aac1c198edfe9eac39343cd56c9f04cf4ee16d (diff)
downloademacs-81e65dff20729fc4637f65a1086a2dba46aea415.tar.gz
emacs-81e65dff20729fc4637f65a1086a2dba46aea415.zip
(Modifying Strings): Add clear-string.
(Text Comparison): Add assoc-string and remove assoc-ignore-case, assoc-ignore-representation.
Diffstat (limited to 'lispref')
-rw-r--r--lispref/strings.texi19
1 files changed, 12 insertions, 7 deletions
diff --git a/lispref/strings.texi b/lispref/strings.texi
index acab7286d0d..7cc182cc058 100644
--- a/lispref/strings.texi
+++ b/lispref/strings.texi
@@ -379,6 +379,14 @@ or if any new character requires a different number of bytes from the
379character currently present at that point in @var{string}. 379character currently present at that point in @var{string}.
380@end defun 380@end defun
381 381
382 To clear out a string that contained a password, use
383@code{clear-string}:
384
385@defun clear-string string
386This clears the contents of @var{string} to zeros
387and may change its length.
388@end defun
389
382@need 2000 390@need 2000
383@node Text Comparison 391@node Text Comparison
384@section Comparison of Characters and Strings 392@section Comparison of Characters and Strings
@@ -518,13 +526,10 @@ two strings. The sign is negative if @var{string1} (or its specified
518portion) is less. 526portion) is less.
519@end defun 527@end defun
520 528
521@defun assoc-ignore-case key alist 529@defun assoc-string key alist &optional case-fold
522@defunx assoc-ignore-representation key alist 530This function works like @code{assoc}, except that @var{key} must be a
523These functions work like @code{assoc}, except that @var{key} must be 531string, and comparison is done using @code{compare-strings}. If
524a string, all elements of @var{alist} must be cons cells whose 532@var{case-fold} is non-@code{nil}, it ignores case differences.
525@sc{car} is a string, and comparison is done using
526@code{compare-strings}. @code{assoc-ignore-case} ignores case
527differences, whereas @code{assoc-ignore-representation} does not.
528@xref{Association Lists}. 533@xref{Association Lists}.
529@end defun 534@end defun
530 535