[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 da5d6db: Fix (length NON-SEQUENCE) documentation
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-26 da5d6db: Fix (length NON-SEQUENCE) documentation |
Date: |
Sat, 7 Jul 2018 13:06:37 -0400 (EDT) |
branch: emacs-26
commit da5d6dbe3974a8012d4fb6a0281d583965742aaa
Author: Basil L. Contovounesios <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Fix (length NON-SEQUENCE) documentation
Suggested by Eli Zaretskii <address@hidden> 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.
---
doc/lispref/sequences.texi | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi
index 59faf2b..188a345 100644
--- a/doc/lispref/sequences.texi
+++ b/doc/lispref/sequences.texi
@@ -71,13 +71,15 @@ string, bool-vector, or char-table, @code{nil} otherwise.
@cindex list length
@cindex vector length
@cindex sequence length
address@hidden bool-vector length
@cindex char-table length
@anchor{Definition of length}
-This function returns the number of elements in @var{sequence}. If
address@hidden is a dotted list, a @code{wrong-type-argument} error is
-signaled; if it is a circular list, a @code{circular-list} error is
-signaled. For a char-table, the value returned is always one more
-than the maximum Emacs character code.
+This function returns the number of elements in @var{sequence}. The
+function signals the @code{wrong-type-argument} error if the argument
+is not a sequence or is a dotted list; it signals the
address@hidden error if the argument is a circular list. For a
+char-table, the value returned is always one more than the maximum
+Emacs character code.
@xref{Definition of safe-length}, for the related function @code{safe-length}.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 da5d6db: Fix (length NON-SEQUENCE) documentation,
Eli Zaretskii <=