Ensure doplist! has no side effects
This commit is contained in:
parent
a78e89bbf8
commit
7c54478335
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ Evaluate BODY with either ARGLIST bound to (cons PROP VAL) or, if ARGLIST is a
|
||||||
list, the pair is destructured into (CAR . CDR)."
|
list, the pair is destructured into (CAR . CDR)."
|
||||||
(declare (indent defun))
|
(declare (indent defun))
|
||||||
(let ((plist-var (make-symbol "plist")))
|
(let ((plist-var (make-symbol "plist")))
|
||||||
`(let ((,plist-var ,plist))
|
`(let ((,plist-var (copy-sequence ,plist)))
|
||||||
(while ,plist-var
|
(while ,plist-var
|
||||||
(let ,(if (listp arglist)
|
(let ,(if (listp arglist)
|
||||||
`((,(pop arglist) (pop ,plist-var))
|
`((,(pop arglist) (pop ,plist-var))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue