mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
core-lib: refactor pushnew! macro
Do a little more work at expand-time.
This commit is contained in:
@ -177,8 +177,8 @@ Accepts the same arguments as `message'."
|
||||
(defmacro pushnew! (place &rest values)
|
||||
"Like `cl-pushnew', but will prepend VALUES to PLACE.
|
||||
The order VALUES is preserved."
|
||||
`(dolist (--value-- (nreverse (list ,@values)))
|
||||
(cl-pushnew --value-- ,place)))
|
||||
`(dolist (--x-- (list ,@(nreverse values)))
|
||||
(cl-pushnew --x-- ,place)))
|
||||
|
||||
(defmacro prependq! (sym &rest lists)
|
||||
"Prepend LISTS to SYM in place."
|
||||
|
Reference in New Issue
Block a user