diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-04-11 15:10:51 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-04-11 15:10:51 -0400 |
commit | 6a480c830bc8d313ca3052570487a65411c937c2 (patch) | |
tree | 37fb9665e32576097d3c28ddea81af877924e9ee /doc/lispref/variables.texi | |
parent | d6338f8a6a5670d7d7075aa277896d9f74723c7a (diff) | |
download | emacs-6a480c830bc8d313ca3052570487a65411c937c2.tar.gz |
* lisp/emacs-lisp/macroexp.el (macroexp-let2*): Allow common shorthand
Diffstat (limited to 'doc/lispref/variables.texi')
-rw-r--r-- | doc/lispref/variables.texi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index f85ed847c47..f0e3f337a69 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi @@ -2789,13 +2789,13 @@ implemented this way: (gv-define-expander substring (lambda (do place from &optional to) (gv-letplace (getter setter) place - (macroexp-let2* nil ((start from) (end to)) - (funcall do `(substring ,getter ,start ,end) + (macroexp-let2* (from to) + (funcall do `(substring ,getter ,from ,to) (lambda (v) - (macroexp-let2 nil v v + (macroexp-let2* (v) `(progn ,(funcall setter `(cl--set-substring - ,getter ,start ,end ,v)) + ,getter ,from ,to ,v)) ,v)))))))) @end example @end defmac @@ -2808,7 +2808,7 @@ of Common Lisp could be implemented this way: @example (defmacro incf (place &optional n) (gv-letplace (getter setter) place - (macroexp-let2 nil v (or n 1) + (macroexp-let2* ((v (or n 1))) (funcall setter `(+ ,v ,getter))))) @end example |