unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#65362: [PATCH] 29.1; Description of `cl-flet' in cl.texi
@ 2023-08-18 10:23 Arash Esbati
  2023-08-19  8:51 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Arash Esbati @ 2023-08-18 10:23 UTC (permalink / raw)
  To: 65362

[-- 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#65362: [PATCH] 29.1; Description of `cl-flet' in cl.texi
  2023-08-18 10:23 bug#65362: [PATCH] 29.1; Description of `cl-flet' in cl.texi Arash Esbati
@ 2023-08-19  8:51 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2023-08-19  8:51 UTC (permalink / raw)
  To: Arash Esbati; +Cc: 65362-done

> From: Arash Esbati <arash@gnu.org>
> Date: Fri, 18 Aug 2023 12:23:58 +0200
> 
> 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.

Thanks, I installed on the emacs-29 branch a slightly different
change, and I'm therefore closing this bug.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-19  8:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-18 10:23 bug#65362: [PATCH] 29.1; Description of `cl-flet' in cl.texi Arash Esbati
2023-08-19  8:51 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).