From 1254d9a3ae89697b591343de2ddf55c5879bc937 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 28 Sep 2022 12:28:30 -0400 Subject: [PATCH] * doc/lispref/functions.texi (Declare Form) : Rephrase See bug#57397. --- doc/lispref/functions.texi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index 983dfe2ec59..0659d3556bb 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi @@ -2476,11 +2476,11 @@ function, of the form @code{(@var{function} @var{args}@dots{})}, the macro expander will call @var{expander} with that form as well as with @var{args}@dots{}, and @var{expander} can either return a new expression to use instead of the function call, or it can return just the form unchanged, -to indicate that the function call should be left alone. @var{expander} can -be a symbol, or it can be a form @code{(lambda (@var{arg}) @var{body})} in -which case @var{arg} will hold the original function call expression, and the -(unevaluated) arguments to the function can be accessed using the function's -formal arguments. +to indicate that the function call should be left alone. + +When @var{expander} is a lambda form it should be of the form +@code{(lambda (@var{arg}) @var{body})} because the function's formal +arguments are automatically added to the lambda's list of arguments. @item (gv-expander @var{expander}) Declare @var{expander} to be the function to handle calls to the macro (or -- 2.39.2