[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r110738: More small manual updates fo
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r110738: More small manual updates for cl.texi |
Date: |
Tue, 30 Oct 2012 00:54:17 -0700 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 110738
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Tue 2012-10-30 00:54:17 -0700
message:
More small manual updates for cl.texi
* doc/misc/cl.texi (Setf Extensions): Partially restore note about cl-getf,
mainly moved to lispref/variables.texi.
(Property Lists): Fix cl-getf typos.
* doc/lispref/variables.texi (Generalized Variables): Fix typo.
modified:
doc/lispref/ChangeLog
doc/lispref/variables.texi
doc/misc/ChangeLog
doc/misc/cl.texi
=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog 2012-10-30 00:29:37 +0000
+++ b/doc/lispref/ChangeLog 2012-10-30 07:54:17 +0000
@@ -1,3 +1,7 @@
+2012-10-30 Glenn Morris <address@hidden>
+
+ * variables.texi (Generalized Variables): Fix typo.
+
2012-10-30 Chong Yidong <address@hidden>
* symbols.texi (Symbol Plists): Document function-get.
=== modified file 'doc/lispref/variables.texi'
--- a/doc/lispref/variables.texi 2012-10-27 22:42:07 +0000
+++ b/doc/lispref/variables.texi 2012-10-30 07:54:17 +0000
@@ -2025,10 +2025,10 @@
Using any forms other than these in the @var{place} argument to
@code{setf} will signal an error.
-Note that for @code{nthcdr} and @code{getf}, the list argument
-of the function must itself be a valid @var{place} form. For
-example, @code{(setf (nthcdr 0 foo) 7)} will set @code{foo} itself
-to 7.
address@hidden And for cl-lib's cl-getf.
+Note that for @code{nthcdr}, the list argument of the function must
+itself be a valid @var{place} form. For example, @code{(setf (nthcdr
+0 foo) 7)} will set @code{foo} itself to 7.
@c The use of @code{nthcdr} as a @var{place} form is an extension
@c to standard Common Lisp.
=== modified file 'doc/misc/ChangeLog'
--- a/doc/misc/ChangeLog 2012-10-30 07:34:37 +0000
+++ b/doc/misc/ChangeLog 2012-10-30 07:54:17 +0000
@@ -2,6 +2,9 @@
* cl.texi (Modify Macros): Update for cl-letf changes.
(Obsolete Lexical Macros): Say a little more about letf/cl-letf.
+ (Setf Extensions): Partially restore note about cl-getf,
+ mainly moved to lispref/variables.texi.
+ (Property Lists): Fix cl-getf typos.
2012-10-29 Glenn Morris <address@hidden>
=== modified file 'doc/misc/cl.texi'
--- a/doc/misc/cl.texi 2012-10-30 07:34:37 +0000
+++ b/doc/misc/cl.texi 2012-10-30 07:54:17 +0000
@@ -900,6 +900,10 @@
cl-rest cl-get cl-getf cl-subseq
@end smallexample
address@hidden
+Note that for @code{cl-getf} (as for @code{nthcdr}), the list argument
+of the function must itself be a valid @var{place} form.
+
@item
General Emacs Lisp functions:
@smallexample
@@ -2813,10 +2817,10 @@
In particular,
@example
-(get sym prop) @equiv{} (cl-get (symbol-plist sym) prop)
+(get sym prop) @equiv{} (cl-getf (symbol-plist sym) prop)
@end example
-It is valid to use @code{getf} as a @code{setf} place, in which case
+It is valid to use @code{cl-getf} as a @code{setf} place, in which case
its @var{place} argument must itself be a valid @code{setf} place.
The @var{default} argument, if any, is ignored in this context.
The effect is to change (via @code{setcar}) the value cell in the
@@ -2824,7 +2828,7 @@
pair onto the list if the property is not yet present.
@example
-(put sym prop val) @equiv{} (setf (cl-get (symbol-plist sym) prop) val)
+(put sym prop val) @equiv{} (setf (cl-getf (symbol-plist sym) prop) val)
@end example
The @code{get} and @code{cl-get} functions are also @code{setf}-able.
@@ -2837,8 +2841,7 @@
Here, symbol @code{foo}'s @code{usage-count} property is incremented
if it exists, or set to 1 (an incremented 0) otherwise.
address@hidden FIXME cl-getf?
-When not used as a @code{setf} form, @code{getf} is just a regular
+When not used as a @code{setf} form, @code{cl-getf} is just a regular
function and its @var{place} argument can actually be any Lisp
expression.
@end defun
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r110738: More small manual updates for cl.texi,
Glenn Morris <=