aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDaniel Colascione2014-04-19 19:50:36 -0700
committerDaniel Colascione2014-04-19 19:50:36 -0700
commit3fab7f1d971d68a83aaaf3762d9d6986bc885d50 (patch)
treec4404b48fe393111cb12277f06ac03ad6b180a26 /doc
parent89a2e783c2f22b4932dd77c16a0e357c5c17a4bf (diff)
downloademacs-3fab7f1d971d68a83aaaf3762d9d6986bc885d50.tar.gz
emacs-3fab7f1d971d68a83aaaf3762d9d6986bc885d50.zip
Tweak documentation for previous change
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/ChangeLog4
-rw-r--r--doc/misc/cl.texi13
2 files changed, 13 insertions, 4 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 4ad0293ee9b..949552091e5 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,7 @@
12014-04-20 Daniel Colascione <dancol@dancol.org>
2
3 * cl.texi (Declarations): Document changes to `cl-the' and defstruct functions.
4
12014-04-17 Paul Eggert <eggert@cs.ucla.edu> 52014-04-17 Paul Eggert <eggert@cs.ucla.edu>
2 6
3 * Makefile.in (infoclean): Be consistent about reporting failures. 7 * Makefile.in (infoclean): Be consistent about reporting failures.
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi
index 1c202961889..78bc8fb9479 100644
--- a/doc/misc/cl.texi
+++ b/doc/misc/cl.texi
@@ -2627,10 +2627,10 @@ In this package, @code{cl-locally} is no different from @code{progn}.
2627@end defmac 2627@end defmac
2628 2628
2629@defmac cl-the type form 2629@defmac cl-the type form
2630Type information provided by @code{cl-the} is ignored in this package; 2630@code{cl-the} returns the value of @code{form}, first checking (if
2631in other words, @code{(cl-the @var{type} @var{form})} is equivalent to 2631optimization settings permit) that it is of type @code{type}. Future
2632@var{form}. Future byte-compiler optimizations may make use of this 2632byte-compiler optimizations may also make use of this information to
2633information. 2633improve runtime efficiency.
2634 2634
2635For example, @code{mapcar} can map over both lists and arrays. It is 2635For example, @code{mapcar} can map over both lists and arrays. It is
2636hard for the compiler to expand @code{mapcar} into an in-line loop 2636hard for the compiler to expand @code{mapcar} into an in-line loop
@@ -4255,6 +4255,7 @@ This function returns the underlying data structure for
4255@code{struct-type}, which is a symbol. It returns @code{vector} or 4255@code{struct-type}, which is a symbol. It returns @code{vector} or
4256@code{list}, or @code{nil} if @code{struct-type} is not actually a 4256@code{list}, or @code{nil} if @code{struct-type} is not actually a
4257structure. 4257structure.
4258@end defun
4258 4259
4259@defun cl-struct-slot-info struct-type 4260@defun cl-struct-slot-info struct-type
4260This function returns a list of slot descriptors for structure 4261This function returns a list of slot descriptors for structure
@@ -4263,6 +4264,7 @@ where @code{name} is the name of the slot and @code{opts} is the list
4263of slot options given to @code{defstruct}. Dummy entries represent 4264of slot options given to @code{defstruct}. Dummy entries represent
4264the slots used for the struct name and that are skipped to implement 4265the slots used for the struct name and that are skipped to implement
4265@code{:initial-offset}. 4266@code{:initial-offset}.
4267@end defun
4266 4268
4267@defun cl-struct-slot-offset struct-type slot-name 4269@defun cl-struct-slot-offset struct-type slot-name
4268Return the offset of slot @code{slot-name} in @code{struct-type}. The 4270Return the offset of slot @code{slot-name} in @code{struct-type}. The
@@ -4270,6 +4272,7 @@ returned zero-based slot index is relative to the start of the
4270structure data type and is adjusted for any structure name and 4272structure data type and is adjusted for any structure name and
4271:initial-offset slots. Signal error if struct @code{struct-type} does 4273:initial-offset slots. Signal error if struct @code{struct-type} does
4272not contain @code{slot-name}. 4274not contain @code{slot-name}.
4275@end defun
4273 4276
4274@defun cl-struct-slot-value struct-type slot-name inst 4277@defun cl-struct-slot-value struct-type slot-name inst
4275Return the value of slot @code{slot-name} in @code{inst} of 4278Return the value of slot @code{slot-name} in @code{inst} of
@@ -4278,6 +4281,7 @@ Return the value of slot @code{slot-name} in @code{inst} of
4278@code{setf} place. @code{cl-struct-slot-value} uses 4281@code{setf} place. @code{cl-struct-slot-value} uses
4279@code{cl-struct-slot-offset} internally and can signal the same 4282@code{cl-struct-slot-offset} internally and can signal the same
4280errors. 4283errors.
4284@end defun
4281 4285
4282@defun cl-struct-set-slot-value struct-type slot-name inst value 4286@defun cl-struct-set-slot-value struct-type slot-name inst value
4283Set the value of slot @code{slot-name} in @code{inst} of 4287Set the value of slot @code{slot-name} in @code{inst} of
@@ -4286,6 +4290,7 @@ Set the value of slot @code{slot-name} in @code{inst} of
4286which to set the given slot. Return @code{value}. 4290which to set the given slot. Return @code{value}.
4287@code{cl-struct-slot-value} uses @code{cl-struct-set-slot-offset} 4291@code{cl-struct-slot-value} uses @code{cl-struct-set-slot-offset}
4288internally and can signal the same errors. 4292internally and can signal the same errors.
4293@end defun
4289 4294
4290@node Assertions 4295@node Assertions
4291@chapter Assertions and Errors 4296@chapter Assertions and Errors