emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: package-update-all from command line


From: Sam Steingold
Subject: Re: package-update-all from command line
Date: Thu, 26 May 2022 11:13:35 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)

> * Stefan Monnier <zbaavre@veb.hzbagerny.pn> [2022-05-25 12:13:30 -0400]:
>
>> At any rate, I think replacing `append' with `cl-union' (or equivalent)
>> in the code above would be a good idea.
>
> Indeed a `delete-dups` would be in order.

Okay, so may I push

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 3a05005fb5..4d95e9437a 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -4294,8 +4294,9 @@ package-quickstart-refresh
           (insert ")\n")))
       (pp `(defvar package-activated-list) (current-buffer))
       (pp `(setq package-activated-list
-                 (append ',(mapcar #'package-desc-name 
package--quickstart-pkgs)
-                         package-activated-list))
+                 (delete-dups
+                  (append ',(mapcar #'package-desc-name 
package--quickstart-pkgs)
+                          package-activated-list)))
           (current-buffer))
       (let ((info-dirs (butlast Info-directory-list)))
         (when info-dirs
--8<---------------cut here---------------end--------------->8---


-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.2113
http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com
http://think-israel.org https://jij.org https://mideasttruth.com
nobody's life, liberty or property are safe while the legislature is in session



reply via email to

[Prev in Thread] Current Thread [Next in Thread]