]> git.eshelyaron.com Git - emacs.git/commitdiff
; Improve wording in documentation of 'not and 'null'
authorEli Zaretskii <eliz@gnu.org>
Mon, 15 Apr 2024 11:52:03 +0000 (14:52 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 22 Apr 2024 18:35:19 +0000 (20:35 +0200)
* doc/lispref/control.texi (Combining Conditions):
* doc/lispref/lists.texi (List-related Predicates): Clarify
wording of 'not' vs 'null'.  (Bug#70392)

(cherry picked from commit ecb80e0e8aa6411b1e14334c2e4701208fdb238d)

doc/lispref/control.texi
doc/lispref/lists.texi

index f9f3389c398b850421549eeccaebc54bea32644c..06bf51d807215ff542d25dada0b961f82de3313a 100644 (file)
@@ -350,7 +350,8 @@ kinds of multiple conditional constructs.
 This function tests for the falsehood of @var{condition}.  It returns
 @code{t} if @var{condition} is @code{nil}, and @code{nil} otherwise.
 The function @code{not} is identical to @code{null}, and we recommend
-using the name @code{null} if you are testing for an empty list.
+using the name @code{null} if you are testing for an empty list or
+@code{nil} value.
 @end defun
 
 @defspec and conditions@dots{}
index 1409e51c0d48f1ae9c0833ddc922916f90c9b0dd..14862bdfc2a47f5be61a4eeb0eedae4d05007c81 100644 (file)
@@ -143,9 +143,9 @@ This function is the opposite of @code{listp}: it returns @code{t} if
 @defun null object
 This function returns @code{t} if @var{object} is @code{nil}, and
 returns @code{nil} otherwise.  This function is identical to @code{not},
-but as a matter of clarity we use @code{null} when @var{object} is
-considered a list and @code{not} when it is considered a truth value
-(see @code{not} in @ref{Combining Conditions}).
+but as a matter of clarity we use @code{not} when @var{object} is
+considered a truth value (see @code{not} in @ref{Combining
+Conditions}) and @code{null} otherwise.
 
 @example
 @group