From: Stefan Monnier Date: Sun, 30 Mar 2025 04:44:50 +0000 (-0400) Subject: lisp/emacs-lisp/cl-macs.el (cl-labels): Fix docstring (bug#77348) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9ce101f460fe52fd7284fc1819e75fc7a26be546;p=emacs.git lisp/emacs-lisp/cl-macs.el (cl-labels): Fix docstring (bug#77348) (cherry picked from commit e6b4c0bcebf4376f60e7801be5f998b42c1e6b06) --- diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index 9d458163094..847a6454b1c 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el @@ -2226,9 +2226,10 @@ Like `cl-flet' but the definitions can refer to previous ones. (defmacro cl-labels (bindings &rest body) "Make local (recursive) function definitions. -BINDINGS is a list of definitions of the form (FUNC ARGLIST BODY...) -where FUNC is the function name, ARGLIST its arguments, and BODY the -forms of the function body. +Each definition can take the form (FUNC EXP) where FUNC is the function +name, and EXP is an expression that returns the function value to which +it should be bound, or it can take the more common form (FUNC ARGLIST +BODY...) which is a shorthand for (FUNC (lambda ARGLIST BODY)). FUNC is defined in any BODY, as well as FORM, so you can write recursive and mutually recursive function definitions. See Info node