summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2023-08-19 11:50:09 +0300
committerEli Zaretskii <eliz@gnu.org>2023-08-19 11:50:09 +0300
commit456ecabe9e860aaf5d4f09d1871bd7cc26b8e359 (patch)
tree2b447d71999a50a19afc12e410c820d7f087694d
parentf6ebd1ef0d028fb5d4551e6766ee882538db132a (diff)
downloademacs-456ecabe9e860aaf5d4f09d1871bd7cc26b8e359.tar.gz
Fix the documentation of 'cl-flet'
* doc/misc/cl.texi (Function Bindings): Update the description. (Bug#65362)
-rw-r--r--doc/misc/cl.texi13
1 files changed, 9 insertions, 4 deletions
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi
index 0284554ed9e..5de33350f4f 100644
--- a/doc/misc/cl.texi
+++ b/doc/misc/cl.texi
@@ -1238,10 +1238,15 @@ of variables.
@defmac cl-flet (bindings@dots{}) forms@dots{}
This form establishes @code{let}-style bindings for functions rather
-than values. Each @var{binding} must be a list of the form
-@samp{(@var{name} @var{arglist} @var{body}@dots{})}. Within
-@var{forms}, any reference to the function @var{name} uses the local
-definition instead of the global one.
+than values. Each @var{binding} must be a list of one of two forms:
+either @w{@code{(@var{name} @var{expr})}} or @w{@code{(@var{name}
+@var{arglist} @var{body}@dots{})}}. The @var{name} is the name of the
+function, @var{expr} is an expression which returns the function value
+to which the corresponding @var{name} should be bound, and
+@var{arglist} and @var{body} are the argument list and the body of the
+function to bind to @var{name}. Within @var{forms}, any reference to
+the function @var{name} uses the local definition provided by
+@var{bindings} instead of the global one.
A ``reference'' to a function name is either a call to that function,
or a use of its name quoted by @code{function} to be passed on to,