diff options
| author | Eli Zaretskii | 2025-04-01 14:19:54 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2025-04-01 14:19:54 +0300 |
| commit | 4f6fa90ec5c8fa2d5709a9ba375dbfa8f0029115 (patch) | |
| tree | 95e44186604e66c9bed55222d111951781d1bc2f | |
| parent | 905712690097addb201b02bd936aa26361316723 (diff) | |
| download | emacs-4f6fa90ec5c8fa2d5709a9ba375dbfa8f0029115.tar.gz emacs-4f6fa90ec5c8fa2d5709a9ba375dbfa8f0029115.zip | |
; * doc/misc/cl.texi (Structures): Fix references and markup.
| -rw-r--r-- | doc/misc/cl.texi | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi index 7219494391b..4bceddb8196 100644 --- a/doc/misc/cl.texi +++ b/doc/misc/cl.texi | |||
| @@ -4066,17 +4066,17 @@ A documentation string describing the slot. | |||
| 4066 | 4066 | ||
| 4067 | Other slot options are currently ignored. | 4067 | Other slot options are currently ignored. |
| 4068 | 4068 | ||
| 4069 | @defmac cl-with-accessors name bindings body@dot{} | 4069 | @defmac cl-with-accessors name bindings body@dots{} |
| 4070 | You can use @code{cl-with-accessors} to lexically define symbols as | 4070 | You can use @code{cl-with-accessors} to lexically define symbols as |
| 4071 | expressions calling the given accessor functions on a single instance of | 4071 | expressions calling the given accessor functions on a single instance of |
| 4072 | a structure or class defined by @code{cl-defstruct} or @code{defclass} | 4072 | a structure or class defined by @code{cl-defstruct} or @code{defclass} |
| 4073 | (@pxref{eieio}). This can simplify code that repeatedly accesses slots. | 4073 | (@pxref{Building Classes,,,eieio,EIEIO}). This can simplify code that |
| 4074 | With it, you can use @code{setf} and @code{setq} on the symbols like | 4074 | repeatedly accesses slots. With it, you can use @code{setf} and |
| 4075 | normal variables, modifying the values in the structure. Unlike the | 4075 | @code{setq} on the symbols like normal variables, modifying the values |
| 4076 | macro @code{with-slots} (@pxref{Accessing Slots,,,eieio,EIEIO}), because | 4076 | in the structure. Unlike the macro @code{with-slots} (@pxref{Accessing |
| 4077 | the symbol expands to a function call, @code{cl-with-accessors} can be | 4077 | Slots,,,eieio,EIEIO}), because the symbol expands to a function call, |
| 4078 | used with any generalized variable that can take a single argument, such | 4078 | @code{cl-with-accessors} can be used with any generalized variable that |
| 4079 | as @code{cl-first} and @code{cl-rest}. | 4079 | can take a single argument, such as @code{cl-first} and @code{cl-rest}. |
| 4080 | @end defmac | 4080 | @end defmac |
| 4081 | 4081 | ||
| 4082 | @example | 4082 | @example |