aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2025-04-01 14:19:54 +0300
committerEli Zaretskii2025-04-01 14:19:54 +0300
commit4f6fa90ec5c8fa2d5709a9ba375dbfa8f0029115 (patch)
tree95e44186604e66c9bed55222d111951781d1bc2f
parent905712690097addb201b02bd936aa26361316723 (diff)
downloademacs-4f6fa90ec5c8fa2d5709a9ba375dbfa8f0029115.tar.gz
emacs-4f6fa90ec5c8fa2d5709a9ba375dbfa8f0029115.zip
; * doc/misc/cl.texi (Structures): Fix references and markup.
-rw-r--r--doc/misc/cl.texi16
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
4067Other slot options are currently ignored. 4067Other 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{}
4070You can use @code{cl-with-accessors} to lexically define symbols as 4070You can use @code{cl-with-accessors} to lexically define symbols as
4071expressions calling the given accessor functions on a single instance of 4071expressions calling the given accessor functions on a single instance of
4072a structure or class defined by @code{cl-defstruct} or @code{defclass} 4072a 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
4074With it, you can use @code{setf} and @code{setq} on the symbols like 4074repeatedly accesses slots. With it, you can use @code{setf} and
4075normal variables, modifying the values in the structure. Unlike the 4075@code{setq} on the symbols like normal variables, modifying the values
4076macro @code{with-slots} (@pxref{Accessing Slots,,,eieio,EIEIO}), because 4076in the structure. Unlike the macro @code{with-slots} (@pxref{Accessing
4077the symbol expands to a function call, @code{cl-with-accessors} can be 4077Slots,,,eieio,EIEIO}), because the symbol expands to a function call,
4078used with any generalized variable that can take a single argument, such 4078@code{cl-with-accessors} can be used with any generalized variable that
4079as @code{cl-first} and @code{cl-rest}. 4079can 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