mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
Merge from origin/emacs-30
f88dc0f2f9; Fix documentation of 'buffer-text-pixel-size'734986349f; Minor Android documentation improvementsa90da89903; Fix up emacs-lisp-mode docstring58c7acb555; Fix completion-fail-discreetly docstring typo.02c830ba22Fix ert-font-lock macro signatures0c6b8643aeFix a typo in 'window_text_pixel_size'8a8c25eacc; Add Rudolf Schlatte to authors.el94c0ea39a5* doc/misc/efaq.texi (New in Emacs 30): Fix typo. (Bug#7...0be5f9115e; * etc/images/README (Files): Add an entry for last-page...63adf9dcf5; Reflow some cl-lib docstrings99253f7970; * etc/TODO: New section "Make it easier to contribute". # Conflicts: # lisp/emacs-lisp/cl-macs.el
This commit is contained in:
commit
6c411de542
13 changed files with 141 additions and 110 deletions
|
|
@ -2069,16 +2069,14 @@ a `let' form, except that the list of symbols can be computed at run-time."
|
|||
;;;###autoload
|
||||
(defmacro cl-flet (bindings &rest body)
|
||||
"Make local function definitions.
|
||||
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)) where BODY is wrapped in
|
||||
a `cl-block' named FUNC.
|
||||
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 only within FORM, not BODY, so you can't write
|
||||
recursive function definitions. Use `cl-labels' for that. See
|
||||
info node `(cl) Function Bindings' for details.
|
||||
FUNC is defined only within FORM, not BODY, so you can't write recursive
|
||||
function definitions. Use `cl-labels' for that. See Info node
|
||||
`(cl) Function Bindings' for details.
|
||||
|
||||
\(fn ((FUNC ARGLIST BODY...) ...) FORM...)"
|
||||
(declare (indent 1)
|
||||
|
|
@ -2277,16 +2275,14 @@ Like `cl-flet' but the definitions can refer to previous ones.
|
|||
;;;###autoload
|
||||
(defmacro cl-labels (bindings &rest body)
|
||||
"Make local (recursive) function definitions.
|
||||
BINDINGS is a list of definitions of the form either (FUNC EXP)
|
||||
where EXP is a form that should return the function to bind to the
|
||||
function name FUNC, or (FUNC ARGLIST BODY...) where
|
||||
FUNC is the function name, ARGLIST its arguments, and BODY the
|
||||
forms of the function body. BODY is wrapped in a `cl-block' named FUNC.
|
||||
FUNC is in scope in any BODY or EXP, as well as in FORM, so you can write
|
||||
recursive and mutually recursive function definitions, with the caveat
|
||||
that EXPs are evaluated in sequence and you cannot call a FUNC before its
|
||||
EXP has been evaluated.
|
||||
See info node `(cl) Function Bindings' for details.
|
||||
|
||||
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.
|
||||
|
||||
FUNC is defined in any BODY, as well as FORM, so you can write recursive
|
||||
and mutually recursive function definitions. See Info node
|
||||
`(cl) Function Bindings' for details.
|
||||
|
||||
\(fn ((FUNC ARGLIST BODY...) ...) FORM...)"
|
||||
(declare (indent 1) (debug cl-flet))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue