From: Philip Kaludercic Date: Tue, 15 Nov 2022 09:46:23 +0000 (+0100) Subject: Avoid destructive manipulation of 'package-vc--archive-spec-alist' X-Git-Tag: emacs-29.0.90~1616^2~69 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=33263377767be2826b4b31695a2e310f2ab021d9;p=emacs.git Avoid destructive manipulation of 'package-vc--archive-spec-alist' * lisp/emacs-lisp/package-vc.el (package-vc--desc->spec): Replace 'mapcar' with 'apply'. This is done to avoid unintentional cycles. --- diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el index 289f8e37ced..78d09400c9f 100644 --- a/lisp/emacs-lisp/package-vc.el +++ b/lisp/emacs-lisp/package-vc.el @@ -218,7 +218,7 @@ name for PKG-DESC." (if (package-desc-archive pkg-desc) (alist-get (intern (package-desc-archive pkg-desc)) package-vc--archive-spec-alist) - (mapcan #'append (mapcar #'cdr package-vc--archive-spec-alist))) + (apply #'append (mapcar #'cdr package-vc--archive-spec-alist))) nil nil #'string=)) (define-inline package-vc--query-spec (pkg-desc prop)