guix-commits
[Top][All Lists]
Advanced

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

branch master updated: guix: Delete duplicates from emacs-load-path.


From: guix-commits
Subject: branch master updated: guix: Delete duplicates from emacs-load-path.
Date: Mon, 28 Jun 2021 15:59:57 -0400

This is an automated email from the git hooks/post-receive script.

leoprikler pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 0f2a17d  guix: Delete duplicates from emacs-load-path.
0f2a17d is described below

commit 0f2a17de06a52ca56c90368e29644036c14abad2
Author: Leo Prikler <leo.prikler@student.tugraz.at>
AuthorDate: Mon Jun 28 21:54:02 2021 +0200

    guix: Delete duplicates from emacs-load-path.
    
    It has been reported in IRC, that directories may show up multiple times in
    subdirs.el, probably a result of propagation.  This can for instance be seen
    by ‘guix environment --ad-hoc emacs emacs-guix’, which will generate 
multiple
    references to dash.  With this patch only one reference per package is
    generated.
    
    * guix/profiles.scm (emacs-subdirs): wrap subdirs added to
    ‘normal-top-level-add-to-load-path’ in ‘delete-duplictes’.
---
 guix/profiles.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/profiles.scm b/guix/profiles.scm
index 8c02149..2486f91 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -1150,7 +1150,7 @@ MANIFEST.  Single-file bundles are required by programs 
such as Git and Lynx."
                 (lambda (port)
                   (write
                    `(normal-top-level-add-to-load-path
-                     (list ,@subdirs))
+                     (list ,@(delete-duplicates subdirs)))
                    port)
                   (newline port)
                   #t)))))))



reply via email to

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