aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorGlenn Morris2018-06-23 07:50:59 -0700
committerGlenn Morris2018-06-23 07:50:59 -0700
commitb81e193ac0c4644d041a4eb4fa4cb62cf9446bd6 (patch)
tree837db70e4aff8fce66886b0cfbe82dbccdea4b06 /doc/misc
parent4df361557c3f1b4039fa59d23cd1ed66c2ca5b1c (diff)
parent5cb3991a4f78b39a2c95b22a5159ae3ba779397e (diff)
downloademacs-b81e193ac0c4644d041a4eb4fa4cb62cf9446bd6.tar.gz
emacs-b81e193ac0c4644d041a4eb4fa4cb62cf9446bd6.zip
Merge from origin/emacs-26
5cb3991 Fix a typo in emacs-lisp-intro.texi d6aa55e Avoid segfaults in replace-buffer-contents with large buffers d22b8d1 Adjust for scaling for mode-line popup menus (Bug#31880) 3d2e3dc Change name of `seqp' argument (Bug#26411) 40e1db8 Change index of ";" to better reflect it's usage (Bug#31623) d289e7e Fix bug of 'mouse-drag-and-drop-region' to detect edges of re... e292c09 Fix #'fun handling inside `labels' (Bug#31792)
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/cl.texi23
1 files changed, 10 insertions, 13 deletions
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi
index 5ae0faf2554..77105d3364e 100644
--- a/doc/misc/cl.texi
+++ b/doc/misc/cl.texi
@@ -1299,17 +1299,18 @@ These forms make @code{let}-like bindings to functions instead
1299of variables. 1299of variables.
1300 1300
1301@defmac cl-flet (bindings@dots{}) forms@dots{} 1301@defmac cl-flet (bindings@dots{}) forms@dots{}
1302This form establishes @code{let}-style bindings on the function 1302This form establishes @code{let}-style bindings for functions rather
1303cells of symbols rather than on the value cells. Each @var{binding} 1303than values. Each @var{binding} must be a list of the form
1304must be a list of the form @samp{(@var{name} @var{arglist} 1304@samp{(@var{name} @var{arglist} @var{body}@dots{})}. Within
1305@var{forms}@dots{})}, which defines a function exactly as if 1305@var{forms}, any reference to the function @var{name} uses the local
1306it were a @code{cl-defun} form. The function @var{name} is defined 1306definition instead of the global one.
1307accordingly but only within the body of the @code{cl-flet}, hiding any external 1307
1308definition if applicable. 1308A ``reference'' to a function name is either a call to that function,
1309or a use of its name quoted by @code{function} to be passed on to,
1310say, @code{mapcar}.
1309 1311
1310The bindings are lexical in scope. This means that all references to 1312The bindings are lexical in scope. This means that all references to
1311the named functions must appear physically within the body of the 1313the named functions must appear physically within @var{forms}.
1312@code{cl-flet} form.
1313 1314
1314Functions defined by @code{cl-flet} may use the full Common Lisp 1315Functions defined by @code{cl-flet} may use the full Common Lisp
1315argument notation supported by @code{cl-defun}; also, the function 1316argument notation supported by @code{cl-defun}; also, the function
@@ -1336,10 +1337,6 @@ functions must appear physically within the body of the
1336the functions themselves. Thus, @code{cl-labels} can define 1337the functions themselves. Thus, @code{cl-labels} can define
1337local recursive functions, or mutually-recursive sets of functions. 1338local recursive functions, or mutually-recursive sets of functions.
1338 1339
1339A ``reference'' to a function name is either a call to that
1340function, or a use of its name quoted by @code{quote} or
1341@code{function} to be passed on to, say, @code{mapcar}.
1342
1343Note that the @file{cl.el} version of this macro behaves slightly 1340Note that the @file{cl.el} version of this macro behaves slightly
1344differently. @xref{Obsolete Macros}. 1341differently. @xref{Obsolete Macros}.
1345@end defmac 1342@end defmac