gnu: emacs: Reorder EMACSLOADPATH search path specification.

Move Guix profiles' site-lisp before Emacs' own in the search path
specification, so that user installed packages can override Emacs' builtin
versions.

Fixes issue #38399 (see: https://bugs.gnu.org/38399).

Reported-by: Diego Nicola Barbato <dnbarbato@posteo.de>

* gnu/packages/emacs.scm (emacs): Move the Emacs builtin library directory
suffix to the end of the search path.
This commit is contained in:
Maxim Cournoyer 2019-12-07 13:14:44 +09:00
parent abda9e2d11
commit 3ffdd0026b
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -187,8 +187,8 @@ (define-public emacs
(list (search-path-specification
(variable "EMACSLOADPATH")
;; The versioned entry is for the Emacs' builtin libraries.
(files (list (string-append "share/emacs/" version "/lisp")
"share/emacs/site-lisp")))
(files (list "share/emacs/site-lisp"
(string-append "share/emacs/" version "/lisp"))))
(search-path-specification
(variable "INFOPATH")
(files '("share/info")))))