aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-10-31 17:04:28 -0400
committerGlenn Morris2012-10-31 17:04:28 -0400
commit87b0d8b1d1ca858c76afa23e4a936bdd9fd8c2e1 (patch)
treee6586fa0282598fe735b9e64ac639a72748e6095
parentdd90fd1a45ddef772b52f67a89648be787c05dd5 (diff)
downloademacs-87b0d8b1d1ca858c76afa23e4a936bdd9fd8c2e1.tar.gz
emacs-87b0d8b1d1ca858c76afa23e4a936bdd9fd8c2e1.zip
* doc/misc/cl.texi (Modify Macros, Function Bindings): Add some xrefs.
-rw-r--r--doc/misc/ChangeLog1
-rw-r--r--doc/misc/cl.texi21
2 files changed, 17 insertions, 5 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index b77147fb0d7..29d8792ce6b 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -7,6 +7,7 @@
7 (Obsolete Lexical Binding): Rename section from "Lexical Bindings". 7 (Obsolete Lexical Binding): Rename section from "Lexical Bindings".
8 (Obsolete Macros): Rename section from "Obsolete Lexical Macros". 8 (Obsolete Macros): Rename section from "Obsolete Lexical Macros".
9 Reword, and add details of flet and labels. 9 Reword, and add details of flet and labels.
10 (Modify Macros, Function Bindings): Add some xrefs.
10 11
112012-10-30 Glenn Morris <rgm@gnu.org> 122012-10-30 Glenn Morris <rgm@gnu.org>
12 13
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi
index 10735420534..d0ca78e55ee 100644
--- a/doc/misc/cl.texi
+++ b/doc/misc/cl.texi
@@ -1193,6 +1193,9 @@ The only exceptions are plain variables and calls to
1193bound on entry, it is simply made unbound by @code{makunbound} or 1193bound on entry, it is simply made unbound by @code{makunbound} or
1194@code{fmakunbound} on exit. 1194@code{fmakunbound} on exit.
1195@end ignore 1195@end ignore
1196
1197Note that the @file{cl.el} version of this macro behaves slightly
1198differently. @xref{Obsolete Macros}.
1196@end defmac 1199@end defmac
1197 1200
1198@defmac cl-letf* (bindings@dots{}) forms@dots{} 1201@defmac cl-letf* (bindings@dots{}) forms@dots{}
@@ -1283,11 +1286,13 @@ accordingly for the duration of the body of the @code{cl-flet}; then
1283the old function definition, or lack thereof, is restored. 1286the old function definition, or lack thereof, is restored.
1284 1287
1285You can use @code{cl-flet} to disable or modify the behavior of a 1288You can use @code{cl-flet} to disable or modify the behavior of a
1286function in a temporary fashion. This will even work on Emacs 1289function in a temporary fashion. (Compare this with the idea
1287primitives, although note that some calls to primitive functions 1290of advising functions.
1288internal to Emacs are made without going through the symbol's 1291@xref{Advising Functions,,,elisp,GNU Emacs Lisp Reference Manual}.)
1289function cell, and so will not be affected by @code{cl-flet}. For 1292This will even work on Emacs primitives, although note that some calls
1290example, 1293to primitive functions internal to Emacs are made without going
1294through the symbol's function cell, and so will not be affected by
1295@code{cl-flet}. For example,
1291 1296
1292@example 1297@example
1293(cl-flet ((message (&rest args) (push args saved-msgs))) 1298(cl-flet ((message (&rest args) (push args saved-msgs)))
@@ -1307,6 +1312,9 @@ Functions defined by @code{cl-flet} may use the full Common Lisp
1307argument notation supported by @code{cl-defun}; also, the function 1312argument notation supported by @code{cl-defun}; also, the function
1308body is enclosed in an implicit block as if by @code{cl-defun}. 1313body is enclosed in an implicit block as if by @code{cl-defun}.
1309@xref{Program Structure}. 1314@xref{Program Structure}.
1315
1316Note that the @file{cl.el} version of this macro behaves slightly
1317differently. @xref{Obsolete Macros}.
1310@end defmac 1318@end defmac
1311 1319
1312@defmac cl-labels (bindings@dots{}) forms@dots{} 1320@defmac cl-labels (bindings@dots{}) forms@dots{}
@@ -1327,6 +1335,9 @@ local recursive functions, or mutually-recursive sets of functions.
1327A ``reference'' to a function name is either a call to that 1335A ``reference'' to a function name is either a call to that
1328function, or a use of its name quoted by @code{quote} or 1336function, or a use of its name quoted by @code{quote} or
1329@code{function} to be passed on to, say, @code{mapcar}. 1337@code{function} to be passed on to, say, @code{mapcar}.
1338
1339Note that the @file{cl.el} version of this macro behaves slightly
1340differently. @xref{Obsolete Macros}.
1330@end defmac 1341@end defmac
1331 1342
1332@node Macro Bindings 1343@node Macro Bindings