mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
emacs-build-system: Move the source directory to the start of EMACSLOADPATH.
Fixes issue #38479 (see: https://bugs.gnu.org/38479). * guix/build/emacs-build-system.scm (add-source-to-load-path): Move the source directory to the start of the EMACSLOADPATH environment variable. Reported-by: Diego Nicola Barbato <dnbarbato@posteo.de>
This commit is contained in:
parent
d0105e7f29
commit
add773c37a
1 changed files with 3 additions and 3 deletions
|
@ -76,10 +76,10 @@ (define* (unpack #:key source #:allow-other-keys)
|
|||
(define* (add-source-to-load-path #:key dummy #:allow-other-keys)
|
||||
"Augment the EMACSLOADPATH environment variable with the source directory."
|
||||
(let* ((source-directory (getcwd))
|
||||
(emacs-load-path-value (string-append (getenv "EMACSLOADPATH") ":"
|
||||
source-directory)))
|
||||
(emacs-load-path-value (string-append source-directory ":"
|
||||
(getenv "EMACSLOADPATH"))))
|
||||
(setenv "EMACSLOADPATH" emacs-load-path-value)
|
||||
(format #t "source directory ~s appended to the `EMACSLOADPATH' \
|
||||
(format #t "source directory ~s prepended to the `EMACSLOADPATH' \
|
||||
environment variable\n" source-directory)))
|
||||
|
||||
(define* (build #:key outputs inputs #:allow-other-keys)
|
||||
|
|
Loading…
Reference in a new issue