# HG changeset patch # User Dave Love # Date 1065459144 0 # Node ID 785941182067c2534bcbe932dac0e8a380ee5b7e # Parent 69d6dc55b638905b9cb6f3b46dd6d1d6a1fc567f Char-tables are sequences. Add string-bytes. diff -r 69d6dc55b638 -r 785941182067 lispref/sequences.texi --- a/lispref/sequences.texi Mon Oct 06 16:50:19 2003 +0000 +++ b/lispref/sequences.texi Mon Oct 06 16:52:24 2003 +0000 @@ -69,8 +69,8 @@ sequence. @defun sequencep object -Returns @code{t} if @var{object} is a list, vector, or -string, @code{nil} otherwise. +Returns @code{t} if @var{object} is a list, vector, +string, or char-table, @code{nil} otherwise. @end defun @defun length sequence @@ -78,10 +78,12 @@ @cindex list length @cindex vector length @cindex sequence length +@cindex char-table length This function returns the number of elements in @var{sequence}. If @var{sequence} is a cons cell that is not a list (because the final @sc{cdr} is not @code{nil}), a @code{wrong-type-argument} error is -signaled. +signaled. For a char-table, the value returned is always one more +than the maximum Emacs character code. @xref{List Elements}, for the related function @code{safe-length}. @@ -109,6 +111,13 @@ @end example @end defun +@defun string-bytes string +@cindex string, number of bytes +This function returns the number of bytes in @var{string}. +If @var{string} is a multibyte string, this is greater than +@code{(length @var{string})}. +@end defun + @defun elt sequence index @cindex elements of sequences This function returns the element of @var{sequence} indexed by