mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix pushnew! inserting duplicates of complex types
Because it was using #'eql for comparison, which is insufficient for compound datatypes, like strings.
This commit is contained in:
@ -169,7 +169,7 @@ at the values with which this function was called."
|
||||
This is a variadic `cl-pushnew'."
|
||||
(let ((var (make-symbol "result")))
|
||||
`(dolist (,var (list ,@values))
|
||||
(cl-pushnew ,var ,place))))
|
||||
(cl-pushnew ,var ,place :test #'equal))))
|
||||
|
||||
(defmacro prependq! (sym &rest lists)
|
||||
"Prepend LISTS to SYM in place."
|
||||
|
Reference in New Issue
Block a user