Remove nconcq! macro
Unused and unnecessary.
This commit is contained in:
parent
a681a32efc
commit
14fc65a9fb
2 changed files with 18 additions and 22 deletions
|
@ -108,11 +108,11 @@ be relative to it.
|
||||||
The search recurses up to DEPTH and no further. DEPTH is an integer.
|
The search recurses up to DEPTH and no further. DEPTH is an integer.
|
||||||
|
|
||||||
MATCH is a string regexp. Only entries that match it will be included."
|
MATCH is a string regexp. Only entries that match it will be included."
|
||||||
(let (file-name-handler-alist
|
(let (result file-name-handler-alist)
|
||||||
result)
|
|
||||||
(dolist (file (mapcan (doom-rpartial #'doom-glob "*") (doom-enlist paths)))
|
(dolist (file (mapcan (doom-rpartial #'doom-glob "*") (doom-enlist paths)))
|
||||||
(cond ((file-directory-p file)
|
(cond ((file-directory-p file)
|
||||||
(nconcq! result
|
(appendq!
|
||||||
|
result
|
||||||
(and (memq type '(t dirs))
|
(and (memq type '(t dirs))
|
||||||
(string-match-p match file)
|
(string-match-p match file)
|
||||||
(not (and filter (funcall filter file)))
|
(not (and filter (funcall filter file)))
|
||||||
|
|
|
@ -159,10 +159,6 @@ This is a variadic `cl-pushnew'."
|
||||||
"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)
|
||||||
"`delq' ELT from LIST in-place.
|
"`delq' ELT from LIST in-place.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue