From: Arash Esbati <arash@gnu.org>
To: 65362@debbugs.gnu.org
Subject: bug#65362: [PATCH] 29.1; Description of `cl-flet' in cl.texi
Date: Fri, 18 Aug 2023 12:23:58 +0200 [thread overview]
Message-ID: <86v8dcy7gh.fsf@gnu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 187 bytes --]
Hi all,
cl.texi doesn't mention the alternative form of bindings inside
`cl-flet' whereas the docstring does it. I suggest the change attached
against the emacs-29 branch.
Best, Arash
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Improve-the-documentation-of-cl-flet.patch --]
[-- Type: text/x-patch, Size: 1200 bytes --]
From 263ffb829a4575033bd890eba53675d5cdc11059 Mon Sep 17 00:00:00 2001
From: Arash Esbati <arash@gnu.org>
Date: Fri, 18 Aug 2023 12:21:31 +0200
Subject: [PATCH] ; Improve the documentation of `cl-flet'
* doc/misc/cl.texi (Function Bindings): Mention the alternative
form of function binding within `cl-flet'.
---
doc/misc/cl.texi | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi
index 0284554ed9e..e78b1792dca 100644
--- a/doc/misc/cl.texi
+++ b/doc/misc/cl.texi
@@ -1238,7 +1238,10 @@ Function Bindings
@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
+than values. Each @var{binding} can take the form @samp{(@var{name}
+@var{exp})} where @var{name} is the function name and @var{exp} is an
+expression that returns the function value to which it should be
+bound. Otherwise the @var{binding} takes the more common 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.
--
2.41.0
next reply other threads:[~2023-08-18 10:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-18 10:23 Arash Esbati [this message]
2023-08-19 8:51 ` bug#65362: [PATCH] 29.1; Description of `cl-flet' in cl.texi Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86v8dcy7gh.fsf@gnu.org \
--to=arash@gnu.org \
--cc=65362@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.