aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBasil L. Contovounesios2018-07-07 19:33:08 +0300
committerEli Zaretskii2018-07-07 20:05:42 +0300
commitda5d6dbe3974a8012d4fb6a0281d583965742aaa (patch)
tree7a2cb3a247095a9ba8c76a5828007b07eca6ef64
parenta427de9c86ed31b1fd7599664b3fea0733e633ee (diff)
downloademacs-da5d6dbe3974a8012d4fb6a0281d583965742aaa.tar.gz
emacs-da5d6dbe3974a8012d4fb6a0281d583965742aaa.zip
Fix (length NON-SEQUENCE) documentation
Suggested by Eli Zaretskii <eliz@gnu.org> in the following threads: https://lists.gnu.org/archive/html/emacs-devel/2018-07/msg00171.html https://lists.gnu.org/archive/html/emacs-devel/2018-07/msg00206.html * doc/lispref/sequences.texi (Sequence Functions): Mention that 'length' signals a 'wrong-type-argument' also when given a non-sequencep argument.
-rw-r--r--doc/lispref/sequences.texi12
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi
index 59faf2b4f1e..188a3451140 100644
--- a/doc/lispref/sequences.texi
+++ b/doc/lispref/sequences.texi
@@ -71,13 +71,15 @@ string, bool-vector, or char-table, @code{nil} otherwise.
71@cindex list length 71@cindex list length
72@cindex vector length 72@cindex vector length
73@cindex sequence length 73@cindex sequence length
74@cindex bool-vector length
74@cindex char-table length 75@cindex char-table length
75@anchor{Definition of length} 76@anchor{Definition of length}
76This function returns the number of elements in @var{sequence}. If 77This function returns the number of elements in @var{sequence}. The
77@var{sequence} is a dotted list, a @code{wrong-type-argument} error is 78function signals the @code{wrong-type-argument} error if the argument
78signaled; if it is a circular list, a @code{circular-list} error is 79is not a sequence or is a dotted list; it signals the
79signaled. For a char-table, the value returned is always one more 80@code{circular-list} error if the argument is a circular list. For a
80than the maximum Emacs character code. 81char-table, the value returned is always one more than the maximum
82Emacs character code.
81 83
82@xref{Definition of safe-length}, for the related function @code{safe-length}. 84@xref{Definition of safe-length}, for the related function @code{safe-length}.
83 85