diff options
| author | Glenn Morris | 2012-11-05 21:03:34 -0500 |
|---|---|---|
| committer | Glenn Morris | 2012-11-05 21:03:34 -0500 |
| commit | 651af8c6316d7fca5b3dadb52b596c2485b2c5d3 (patch) | |
| tree | 3cbf66e7b337caf3a2d72ddfbaac548f9149a7bb | |
| parent | c9cac599db4071691eef96aa8c8473a6fe91fa03 (diff) | |
| download | emacs-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/ChangeLog | 2 | ||||
| -rw-r--r-- | doc/lispref/variables.texi | 11 | ||||
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/cl.texi | 13 |
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 | ||
| 8 | 2012-11-05 Chong Yidong <cyd@gnu.org> | 10 | 2012-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: | |||
| 2119 | This is the most general way to define a new @code{setf} expansion. | 2119 | This 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 | ||
| 2124 | Common Lisp defines another way to specify the @code{setf} behavior of | ||
| 2125 | a 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 | ||
| 2128 | when @code{setf} is applied to @code{foo}. Emacs does not support | ||
| 2129 | this. It is a compile-time error to use @code{setf} on a form that | ||
| 2130 | has not already had an appropriate expansion defined. In Common Lisp, | ||
| 2131 | this is not an error since the function @code{(setf @var{func})} might | ||
| 2132 | be 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 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-11-03 Glenn Morris <rgm@gnu.org> | 6 | 2012-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 | |||
| 5105 | simpler case, then massaging the result. | 5105 | simpler 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? | ||
| 5109 | Modern Common Lisp defines a second, independent way to specify | ||
| 5110 | the @code{setf} behavior of a function, namely ``@code{setf} | ||
| 5111 | functions'' whose names are lists @code{(setf @var{name})} | ||
| 5112 | rather than symbols. For example, @code{(defun (setf foo) @dots{})} | ||
| 5113 | defines the function that is used when @code{setf} is applied to | ||
| 5114 | @code{foo}. This package does not currently support @code{setf} | ||
| 5115 | functions. In particular, it is a compile-time error to use | ||
| 5116 | @code{setf} on a form which has not already been @code{defsetf}'d | ||
| 5117 | or otherwise declared; in newer Common Lisps, this would not be | ||
| 5118 | an error since the function @code{(setf @var{func})} might be | ||
| 5119 | defined 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 |