aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-11-05 21:03:34 -0500
committerGlenn Morris2012-11-05 21:03:34 -0500
commit651af8c6316d7fca5b3dadb52b596c2485b2c5d3 (patch)
tree3cbf66e7b337caf3a2d72ddfbaac548f9149a7bb
parentc9cac599db4071691eef96aa8c8473a6fe91fa03 (diff)
downloademacs-651af8c6316d7fca5b3dadb52b596c2485b2c5d3.tar.gz
emacs-651af8c6316d7fca5b3dadb52b596c2485b2c5d3.zip
Move note on lack of setf functions from cl.texi to lispref
* doc/lispref/variables.texi (Adding Generalized Variables): Move note on lack of setf functions to here... * doc/misc/cl.texi (Obsolete Setf Customization): ... from here.
-rw-r--r--doc/lispref/ChangeLog2
-rw-r--r--doc/lispref/variables.texi11
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/cl.texi13
4 files changed, 18 insertions, 13 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index d97a258da34..c588e81dd1f 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -3,6 +3,8 @@
3 * variables.texi (Setting Generalized Variables): 3 * variables.texi (Setting Generalized Variables):
4 Split most of previous contents into this subsection. 4 Split most of previous contents into this subsection.
5 (Adding Generalized Variables): New subsection. 5 (Adding Generalized Variables): New subsection.
6 Move note on lack of setf functions here from misc/cl.texi.
7
6 * elisp.texi: Add Generalized Variables subsections to detailed menu. 8 * elisp.texi: Add Generalized Variables subsections to detailed menu.
7 9
82012-11-05 Chong Yidong <cyd@gnu.org> 102012-11-05 Chong Yidong <cyd@gnu.org>
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index f9f69850ef8..c1a18a81bc1 100644
--- a/doc/lispref/variables.texi
+++ b/doc/lispref/variables.texi
@@ -2119,3 +2119,14 @@ value that was set. An example of using this macro is:
2119This is the most general way to define a new @code{setf} expansion. 2119This is the most general way to define a new @code{setf} expansion.
2120@end defmac 2120@end defmac
2121@end ignore 2121@end ignore
2122
2123@cindex CL note---no @code{setf} functions
2124Common Lisp defines another way to specify the @code{setf} behavior of
2125a function, namely ``@code{setf} functions'', whose names are lists
2126@code{(setf @var{name})} rather than symbols. For example,
2127@code{(defun (setf foo) @dots{})} defines the function that is used
2128when @code{setf} is applied to @code{foo}. Emacs does not support
2129this. It is a compile-time error to use @code{setf} on a form that
2130has not already had an appropriate expansion defined. In Common Lisp,
2131this is not an error since the function @code{(setf @var{func})} might
2132be defined later.
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 62308037fec..c182cb04b6c 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,8 @@
12012-11-06 Glenn Morris <rgm@gnu.org>
2
3 * cl.texi (Obsolete Setf Customization):
4 Move note on lack of setf functions to lispref/variables.texi.
5
12012-11-03 Glenn Morris <rgm@gnu.org> 62012-11-03 Glenn Morris <rgm@gnu.org>
2 7
3 * cl.texi: Further general copyedits. 8 * cl.texi: Further general copyedits.
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi
index e182c2600f9..a8cc2e47406 100644
--- a/doc/misc/cl.texi
+++ b/doc/misc/cl.texi
@@ -5105,19 +5105,6 @@ See also the source code for the setf-method for
5105simpler case, then massaging the result. 5105simpler case, then massaging the result.
5106@end defun 5106@end defun
5107 5107
5108@c FIXME does not belong here any more, maybe in lispref?
5109Modern Common Lisp defines a second, independent way to specify
5110the @code{setf} behavior of a function, namely ``@code{setf}
5111functions'' whose names are lists @code{(setf @var{name})}
5112rather than symbols. For example, @code{(defun (setf foo) @dots{})}
5113defines the function that is used when @code{setf} is applied to
5114@code{foo}. This package does not currently support @code{setf}
5115functions. In particular, it is a compile-time error to use
5116@code{setf} on a form which has not already been @code{defsetf}'d
5117or otherwise declared; in newer Common Lisps, this would not be
5118an error since the function @code{(setf @var{func})} might be
5119defined later.
5120
5121 5108
5122@node GNU Free Documentation License 5109@node GNU Free Documentation License
5123@appendix GNU Free Documentation License 5110@appendix GNU Free Documentation License