emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/projectile a0858c3: Minor list processing cleanup


From: ELPA Syncer
Subject: [nongnu] elpa/projectile a0858c3: Minor list processing cleanup
Date: Mon, 6 Dec 2021 14:58:13 -0500 (EST)

branch: elpa/projectile
commit a0858c3079f26b564281f3a51c0ac533bc6e961b
Author: Juergen Hoetzel <juergen@hoetzel.info>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>

    Minor list processing cleanup
---
 projectile.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/projectile.el b/projectile.el
index afa4ab7..488df28 100644
--- a/projectile.el
+++ b/projectile.el
@@ -5028,10 +5028,8 @@ See `projectile--cleanup-known-projects'."
   "Add PROJECT-ROOT to the list of known projects."
   (interactive (list (read-directory-name "Add to known projects: ")))
   (unless (projectile-ignored-project-p project-root)
-    (setq projectile-known-projects
-          (delete-dups
-           (cons (file-name-as-directory (abbreviate-file-name project-root))
-                 projectile-known-projects)))
+    (push (file-name-as-directory (abbreviate-file-name project-root)) 
projectile-known-projects)
+    (delete-dups projectile-known-projects)
     (projectile-merge-known-projects)))
 
 (defun projectile-load-known-projects ()



reply via email to

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