From 9aca5ceac81328d95474c928a0773662d332d16d Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 27 Nov 2019 13:40:20 +0900 Subject: gnu: emacs: Simplify the EMACSLOADPATH search path specification. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The EMACSLOADPATH can be greatly simplified by relying on a subdirs.el file that causes Emacs to search recursively a directory found in EMACSLOADPATH. * gnu/packages/emacs.scm (emacs)[native-search-paths]: Remove the match-all file pattern regexp. Remove the versioned site-lisp directory from searched files, as it appears unused by Emacs. Reported-by: Leo Prikler Signed-off-by: Clément Lassieur --- gnu/packages/emacs.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gnu/packages') diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 16f9af0a0a..95859b8a88 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -186,11 +186,9 @@ (define-public emacs (native-search-paths (list (search-path-specification (variable "EMACSLOADPATH") - ;; The versioned entries are for the Emacs' builtin libraries. - (files (list (string-append "share/emacs/" version "/site-lisp") - (string-append "share/emacs/" version "/lisp") - "share/emacs/site-lisp")) - (file-pattern ".*")) ;recursively add any sub directory + ;; The versioned entry is for the Emacs' builtin libraries. + (files (list (string-append "share/emacs/" version "/lisp") + "share/emacs/site-lisp"))) (search-path-specification (variable "INFOPATH") (files '("share/info"))))) -- cgit v1.2.3