Re: [PATCH 3/4] system: Fix EMACSLOADPATH.
Ludovic Courtès (2016-02-06 15:48 +0300) wrote: > Alex Kostskribis: > >> After commit 13fe4891fa247d306e203ee14c6886513bd86b52, Emacs package >> includes "site-start.el", and it has a priority over >> "/etc/emacs/site-start.el" on GuixSD because "/etc/emacs" is added to >> the end of 'load-path'. >> >> * gnu/system.scm (operating-system-environment-variables): Change >> EMACSLOADPATH to prepend "/etc/emacs" to 'load-path' instead of >> appending. > > [...] > >> +;; Prepend the directory of 'site-start.el' to the search path. > > + “so that it has higher precedence than the ‘site-start.el’ file our > Emacs package provides.” > > OK! Added, thanks! -- Alex
Re: [PATCH 3/4] system: Fix EMACSLOADPATH.
Alex Kostskribis: > After commit 13fe4891fa247d306e203ee14c6886513bd86b52, Emacs package > includes "site-start.el", and it has a priority over > "/etc/emacs/site-start.el" on GuixSD because "/etc/emacs" is added to > the end of 'load-path'. > > * gnu/system.scm (operating-system-environment-variables): Change > EMACSLOADPATH to prepend "/etc/emacs" to 'load-path' instead of > appending. [...] > +;; Prepend the directory of 'site-start.el' to the search path. + “so that it has higher precedence than the ‘site-start.el’ file our Emacs package provides.” OK! Ludo’.
[PATCH 3/4] system: Fix EMACSLOADPATH.
After commit 13fe4891fa247d306e203ee14c6886513bd86b52, Emacs package includes "site-start.el", and it has a priority over "/etc/emacs/site-start.el" on GuixSD because "/etc/emacs" is added to the end of 'load-path'. * gnu/system.scm (operating-system-environment-variables): Change EMACSLOADPATH to prepend "/etc/emacs" to 'load-path' instead of appending. --- gnu/system.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/system.scm b/gnu/system.scm index d4759a0..82dba7f 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -581,8 +581,8 @@ use 'plain-file' instead~%") ("SSL_CERT_DIR" . "/etc/ssl/certs") ("SSL_CERT_FILE" . "/etc/ssl/certs/ca-certificates.crt") ("GIT_SSL_CAINFO" . "/etc/ssl/certs/ca-certificates.crt") -;; Append the directory of 'site-start.el' to the search path. -("EMACSLOADPATH" . ":/etc/emacs") +;; Prepend the directory of 'site-start.el' to the search path. +("EMACSLOADPATH" . "/etc/emacs:") ;; By default, applications that use D-Bus, such as Emacs, abort at startup ;; when /etc/machine-id is missing. Make sure these warnings are non-fatal. ("DBUS_FATAL_WARNINGS" . "0"))) -- 2.6.3