mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-18 16:06:56 -05:00
Ensure doplist! has no side effects
This commit is contained in:
@@ -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))
|
||||||
|
Reference in New Issue
Block a user