summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-01-01 05:48:02 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-01-01 05:48:02 +0100
commitd22e74795d8c6aeb3af64e2af8a8f3d96924f6f1 (patch)
treec416dce7a42730d0c494a5db5316020b28b8b9a8 /doc
parent58bdfd7c540c49f3727c517c3599c9d601696caf (diff)
downloademacs-d22e74795d8c6aeb3af64e2af8a8f3d96924f6f1.tar.gz
Revert recent add-to-ordered-list changes
* doc/lispref/lists.texi (List Variables): Revert. * lisp/subr.el (add-to-ordered-list): Revert recent changes because the semantics are too muddled.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/lists.texi9
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/lispref/lists.texi b/doc/lispref/lists.texi
index 21ee386335e..ae793d5e15e 100644
--- a/doc/lispref/lists.texi
+++ b/doc/lispref/lists.texi
@@ -807,14 +807,13 @@ foo ;; @r{@code{foo} was changed.}
(setq @var{var} (cons @var{value} @var{var})))
@end example
-@defun add-to-ordered-list symbol element &optional order test-function
+@defun add-to-ordered-list symbol element &optional order
This function sets the variable @var{symbol} by inserting
@var{element} into the old value, which must be a list, at the
position specified by @var{order}. If @var{element} is already a
-member of the list, its position in the list is adjusted according to
-@var{order}. Membership is tested using @var{test-function},
-defaulting to @code{eq} if @var{test-function} isn't present. This
-function returns the resulting list, whether updated or not.
+member of the list, its position in the list is adjusted according
+to @var{order}. Membership is tested using @code{eq}.
+This function returns the resulting list, whether updated or not.
The @var{order} is typically a number (integer or float), and the
elements of the list are sorted in non-decreasing numerical order.