diff options
author | Glenn Morris <rgm@gnu.org> | 2012-10-28 18:12:53 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2012-10-28 18:12:53 -0700 |
commit | a0ccbcbddcdf0c7cb990341fd1b9947c08eaaa15 (patch) | |
tree | 5500fe4f9326b9087410b23fd1e652d7c842fa46 /lisp/emacs-lisp | |
parent | d3094168d6979f52c770117eb9dc5f034db07fbd (diff) | |
download | emacs-a0ccbcbddcdf0c7cb990341fd1b9947c08eaaa15.tar.gz emacs-a0ccbcbddcdf0c7cb990341fd1b9947c08eaaa15.tar.bz2 emacs-a0ccbcbddcdf0c7cb990341fd1b9947c08eaaa15.zip |
* lisp/emacs-lisp/cl.el (defsetf): Doc fix.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/cl.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/cl.el b/lisp/emacs-lisp/cl.el index 34beed0d9ef..a558e505e66 100644 --- a/lisp/emacs-lisp/cl.el +++ b/lisp/emacs-lisp/cl.el @@ -568,9 +568,9 @@ well for simple place forms. In the simple `defsetf' form, `setf's of the form (setf (NAME ARGS...) VAL) are transformed to function or macro calls of the form (FUNC ARGS... VAL). Example: - (cl-defsetf aref aset) + (defsetf aref aset) -Alternate form: (cl-defsetf NAME ARGLIST (STORE) BODY...). +Alternate form: (defsetf NAME ARGLIST (STORE) BODY...). Here, the above `setf' call is expanded by binding the argument forms ARGS according to ARGLIST, binding the value form VAL to STORE, then executing BODY, which must return a Lisp form that does the necessary `setf' operation. @@ -578,7 +578,7 @@ Actually, ARGLIST and STORE may be bound to temporary variables which are introduced automatically to preserve proper execution order of the arguments. Example: - (cl-defsetf nth (n x) (v) `(setcar (nthcdr ,n ,x) ,v)) + (defsetf nth (n x) (v) `(setcar (nthcdr ,n ,x) ,v)) \(fn NAME [FUNC | ARGLIST (STORE) BODY...])" (declare (debug |