diff options
| author | Glenn Morris | 2012-10-31 17:04:28 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-10-31 17:04:28 -0400 |
| commit | 87b0d8b1d1ca858c76afa23e4a936bdd9fd8c2e1 (patch) | |
| tree | e6586fa0282598fe735b9e64ac639a72748e6095 | |
| parent | dd90fd1a45ddef772b52f67a89648be787c05dd5 (diff) | |
| download | emacs-87b0d8b1d1ca858c76afa23e4a936bdd9fd8c2e1.tar.gz emacs-87b0d8b1d1ca858c76afa23e4a936bdd9fd8c2e1.zip | |
* doc/misc/cl.texi (Modify Macros, Function Bindings): Add some xrefs.
| -rw-r--r-- | doc/misc/ChangeLog | 1 | ||||
| -rw-r--r-- | doc/misc/cl.texi | 21 |
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 | ||
| 11 | 2012-10-30 Glenn Morris <rgm@gnu.org> | 12 | 2012-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 | |||
| 1193 | bound on entry, it is simply made unbound by @code{makunbound} or | 1193 | bound 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 | |||
| 1197 | Note that the @file{cl.el} version of this macro behaves slightly | ||
| 1198 | differently. @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 | |||
| 1283 | the old function definition, or lack thereof, is restored. | 1286 | the old function definition, or lack thereof, is restored. |
| 1284 | 1287 | ||
| 1285 | You can use @code{cl-flet} to disable or modify the behavior of a | 1288 | You can use @code{cl-flet} to disable or modify the behavior of a |
| 1286 | function in a temporary fashion. This will even work on Emacs | 1289 | function in a temporary fashion. (Compare this with the idea |
| 1287 | primitives, although note that some calls to primitive functions | 1290 | of advising functions. |
| 1288 | internal to Emacs are made without going through the symbol's | 1291 | @xref{Advising Functions,,,elisp,GNU Emacs Lisp Reference Manual}.) |
| 1289 | function cell, and so will not be affected by @code{cl-flet}. For | 1292 | This will even work on Emacs primitives, although note that some calls |
| 1290 | example, | 1293 | to primitive functions internal to Emacs are made without going |
| 1294 | through 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 | |||
| 1307 | argument notation supported by @code{cl-defun}; also, the function | 1312 | argument notation supported by @code{cl-defun}; also, the function |
| 1308 | body is enclosed in an implicit block as if by @code{cl-defun}. | 1313 | body is enclosed in an implicit block as if by @code{cl-defun}. |
| 1309 | @xref{Program Structure}. | 1314 | @xref{Program Structure}. |
| 1315 | |||
| 1316 | Note that the @file{cl.el} version of this macro behaves slightly | ||
| 1317 | differently. @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. | |||
| 1327 | A ``reference'' to a function name is either a call to that | 1335 | A ``reference'' to a function name is either a call to that |
| 1328 | function, or a use of its name quoted by @code{quote} or | 1336 | function, 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 | |||
| 1339 | Note that the @file{cl.el} version of this macro behaves slightly | ||
| 1340 | differently. @xref{Obsolete Macros}. | ||
| 1330 | @end defmac | 1341 | @end defmac |
| 1331 | 1342 | ||
| 1332 | @node Macro Bindings | 1343 | @node Macro Bindings |