core-lib: add nconcq! macro

This commit is contained in:
Henrik Lissner 2019-07-21 19:12:11 +02:00
parent e8ecf65cf9
commit 492f2dea1e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -305,6 +305,10 @@ This is a variadic `push'."
"Append LISTS to SYM in place."
`(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)
"Delete ELT from LIST in-place."
`(setq ,list