From 3fbba716fbf09f0c13c73e822df10a7607aa6799 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Fri, 20 Dec 2013 19:41:31 +0100 Subject: [PATCH] Document that =, <, <=, >, >= now accept one or many arguments. * doc/lispref/numbers.texi (numbers): Document that =, <, <=, >, >= now accept one or many arguments. --- doc/lispref/ChangeLog | 3 +++ doc/lispref/numbers.texi | 31 ++++++++++++++++--------------- etc/NEWS | 1 + 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index be050b7141e..15730515301 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,5 +1,8 @@ 2013-12-20 Tassilo Horn + * numbers.texi (numbers): Document that =, <, <=, >, >= now accept + one or many arguments. + * display.texi: Document `messages-buffer'. * os.texi: Document `initial-buffer-choice' changes. diff --git a/doc/lispref/numbers.texi b/doc/lispref/numbers.texi index 2b6f31b670b..1f08d31a4b1 100644 --- a/doc/lispref/numbers.texi +++ b/doc/lispref/numbers.texi @@ -354,9 +354,9 @@ can have just one integer object for any given value because it has a limited range of integer values. @end quotation -@defun = number-or-marker1 number-or-marker2 -This function tests whether its arguments are numerically equal, and -returns @code{t} if so, @code{nil} otherwise. +@defun = number-or-marker &rest number-or-markers +This function tests whether all its arguments are numerically equal, +and returns @code{t} if so, @code{nil} otherwise. @end defun @defun eql value1 value2 @@ -371,26 +371,27 @@ This function tests whether its arguments are numerically equal, and returns @code{t} if they are not, and @code{nil} if they are. @end defun -@defun < number-or-marker1 number-or-marker2 -This function tests whether its first argument is strictly less than -its second argument. It returns @code{t} if so, @code{nil} otherwise. +@defun < number-or-marker &rest number-or-markers +This function tests whether every argument is strictly less than the +respective next argument. It returns @code{t} if so, @code{nil} +otherwise. @end defun -@defun <= number-or-marker1 number-or-marker2 -This function tests whether its first argument is less than or equal -to its second argument. It returns @code{t} if so, @code{nil} +@defun <= number-or-marker &rest number-or-markers +This function tests whether every argument is less than or equal to +the respective next argument. It returns @code{t} if so, @code{nil} otherwise. @end defun -@defun > number-or-marker1 number-or-marker2 -This function tests whether its first argument is strictly greater -than its second argument. It returns @code{t} if so, @code{nil} +@defun > number-or-marker &rest number-or-markers +This function tests whether every argument is strictly greater than +the respective next argument. It returns @code{t} if so, @code{nil} otherwise. @end defun -@defun >= number-or-marker1 number-or-marker2 -This function tests whether its first argument is greater than or -equal to its second argument. It returns @code{t} if so, @code{nil} +@defun >= number-or-marker &rest number-or-markers +This function tests whether every argument is greater than or equal to +the respective next argument. It returns @code{t} if so, @code{nil} otherwise. @end defun diff --git a/etc/NEWS b/etc/NEWS index 1e44a020856..57516bfafb4 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -862,6 +862,7 @@ frame. *** `bool-vector-count-consecutive' *** `bool-vector-count-population' ++++ ** Comparison functions =, <, >, <=, >= now take many arguments. ** The second argument of `eval' can now be a lexical-environment. -- 2.39.2