shadows shadow-files-to-copy (with-output-to-string (backtrace))))
(when shadows
(setq shadow-files-to-copy
- (cl-union shadows shadow-files-to-copy :test #'equal))
+ (nreverse (cl-union shadows shadow-files-to-copy :test #'equal)))
(when (not shadow-inhibit-message)
(message "%s" (substitute-command-keys
"Use \\[shadow-copy-files] to update shadows."))
(defun shadow-union (a b)
"Add members of list A to list B if not equal to items already in B."
(declare (obsolete cl-union "28.1"))
- (cl-union a b :test #'equal))
+ (nreverse (cl-union a b :test #'equal)))
(define-obsolete-function-alias 'shadow-find #'seq-find "28.1")