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.
(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")))))