mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
core-lib: add nconcq! macro
This commit is contained in:
@ -305,6 +305,10 @@ This is a variadic `push'."
|
|||||||
"Append LISTS to SYM in place."
|
"Append LISTS to SYM in place."
|
||||||
`(setq ,sym (append ,sym ,@lists)))
|
`(setq ,sym (append ,sym ,@lists)))
|
||||||
|
|
||||||
|
(defmacro nconcq! (sym &rest lists)
|
||||||
|
"Append LISTS to SYM by altering them in place."
|
||||||
|
`(setq ,sym (nconc ,sym ,@lists)))
|
||||||
|
|
||||||
(defmacro delq! (elt list &optional fetcher)
|
(defmacro delq! (elt list &optional fetcher)
|
||||||
"Delete ELT from LIST in-place."
|
"Delete ELT from LIST in-place."
|
||||||
`(setq ,list
|
`(setq ,list
|
||||||
|
Reference in New Issue
Block a user