guix-commits
[Top][All Lists]
Advanced

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

04/06: gnu: emacs: Use load-path instead of EMACSLOADPATH.


From: guix-commits
Subject: 04/06: gnu: emacs: Use load-path instead of EMACSLOADPATH.
Date: Wed, 4 Dec 2019 05:07:51 -0500 (EST)

snape pushed a commit to branch master
in repository guix.

commit 903765f0d9fee0412e63d960f20b741c5afbcea7
Author: Maxim Cournoyer <address@hidden>
Date:   Wed Nov 27 14:02:42 2019 +0900

    gnu: emacs: Use load-path instead of EMACSLOADPATH.
    
    This enables the use of the subdirs.el feature of Emacs, where specifying a
    directory in EMACSLOADPATH translates into a `load-path' variable containing
    the directory and all its sub-directories.
    
    * gnu/packages/aux-files/emacs/guix-emacs.el (guix-emacs-autoload-packages):
    Use `load-path' directly instead of parsing EMACSLOADPATH.
    
    Reported-by: Leo Prikler <address@hidden>
    Signed-off-by: Clément Lassieur <address@hidden>
---
 gnu/packages/aux-files/emacs/guix-emacs.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/aux-files/emacs/guix-emacs.el 
b/gnu/packages/aux-files/emacs/guix-emacs.el
index b4315c1..05fc970 100644
--- a/gnu/packages/aux-files/emacs/guix-emacs.el
+++ b/gnu/packages/aux-files/emacs/guix-emacs.el
@@ -47,13 +47,12 @@ The files in the list do not have extensions (.el, .elc)."
   ;; FIXME: The autoloads generated by the emacs-build-system are not byte
   ;; compiled.
   (interactive)
-  (let* ((emacs-load-path (getenv "EMACSLOADPATH"))
-         (emacs-non-core-load-path-directories
+  (let* ((emacs-non-core-load-path-directories
           ;; Filter out core Elisp directories, which are already autoloaded
           ;; by Emacs.
           (seq-filter (lambda (dir)
                         (string-match-p "/share/emacs/site-lisp" dir))
-                      (split-string emacs-load-path ":")))
+                      load-path))
          (autoloads (mapcan #'guix-emacs-find-autoloads
                             emacs-non-core-load-path-directories)))
     (mapc (lambda (f)



reply via email to

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