* Emacs load-path random order
@ 2018-04-21 3:44 Pierre Neidhardt
2018-04-21 19:37 ` Chris Marusich
0 siblings, 1 reply; 3+ messages in thread
From: Pierre Neidhardt @ 2018-04-21 3:44 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 6552 bytes --]
Sometimes when I log into my GuixSD system, I notice that
/var/guix/profiles/per-user/ambrevar/guix-profile/share/emacs/site-lisp/guix.d
folders are _prepended_ to the path.
--8<---------------cut here---------------start------------->8---
> load-path
("/var/guix/profiles/per-user/ambrevar/guix-profile/share/emacs/site-lisp/guix.d/pdf-tools-0.80"
"/var/guix/profiles/per-user/ambrevar/guix-profile/share/emacs/site-lisp/guix.d/popup-0.5.3"
"/var/guix/profiles/per-user/ambrevar/guix-profile/share/emacs/site-lisp/guix.d/bui-1.1.0"
"/var/guix/profiles/per-user/ambrevar/guix-profile/share/emacs/site-lisp/guix.d/helm-system-packages-1.9.0-1.9e5805f"
"/var/guix/profiles/per-user/ambrevar/guix-profile/share/emacs/site-lisp/guix.d/helm-2.9.0"
"/var/guix/profiles/per-user/ambrevar/guix-profile/share/emacs/site-lisp/guix.d/async-1.9.2"
"/var/guix/profiles/per-user/ambrevar/guix-profile/share/emacs/site-lisp/guix.d/tablist-0.70"
"/var/guix/profiles/per-user/ambrevar/guix-profile/share/emacs/site-lisp/guix.d/dash-2.13.0"
"/var/guix/profiles/per-user/ambrevar/guix-profile/share/emacs/site-lisp/guix.d/magit-popup-2.12.0"
"/var/guix/profiles/per-user/ambrevar/guix-profile/share/emacs/site-lisp"
"/usr/share/asymptote"
"/home/ambrevar/.local/share/emacs/site-lisp/helm-system-packages/stand-alone"
"/home/ambrevar/.local/share/emacs/site-lisp/helm-system-packages/screencasts"
"/home/ambrevar/.local/share/emacs/site-lisp/helm-system-packages/patch-mainline"
"/home/ambrevar/.local/share/emacs/site-lisp/helm-system-packages/patch-backup"
"/home/ambrevar/.local/share/emacs/site-lisp/helm-system-packages"
"/home/ambrevar/.local/share/emacs/site-lisp/helm-eww"
"/home/ambrevar/.local/share/emacs/site-lisp/evil-collection/test"
"/home/ambrevar/.local/share/emacs/site-lisp/evil-collection"
"/home/ambrevar/.local/share/emacs/site-lisp/emms/src"
"/home/ambrevar/.local/share/emacs/site-lisp/emms/lisp"
"/home/ambrevar/.local/share/emacs/site-lisp/emms/doc"
"/home/ambrevar/.local/share/emacs/site-lisp/emms"
"/home/ambrevar/.local/share/emacs/site-lisp/daemons.el/img"
"/home/ambrevar/.local/share/emacs/site-lisp/daemons.el"
"/home/ambrevar/.local/share/emacs/site-lisp/"
"/home/ambrevar/.cache/emacs/elpa/auctex-12.1.1/"
; ...
"/home/ambrevar/.cache/emacs/elpa/ztree-20180409.1322"
"/home/ambrevar/.emacs.d/lisp/"
"/home/ambrevar/.guix-profile/share/emacs/site-lisp/"
"/home/ambrevar/.guix-profile/share/emacs/site-lisp/guix.d/pdf-tools-0.80"
"/home/ambrevar/.guix-profile/share/emacs/site-lisp/guix.d/popup-0.5.3"
"/home/ambrevar/.guix-profile/share/emacs/site-lisp/guix.d/bui-1.1.0"
"/home/ambrevar/.guix-profile/share/emacs/site-lisp/guix.d/helm-system-packages-1.9.0-1.9e5805f"
"/home/ambrevar/.guix-profile/share/emacs/site-lisp/guix.d/helm-2.9.0"
"/home/ambrevar/.guix-profile/share/emacs/site-lisp/guix.d/async-1.9.2"
"/home/ambrevar/.guix-profile/share/emacs/site-lisp/guix.d/tablist-0.70"
"/home/ambrevar/.guix-profile/share/emacs/site-lisp/guix.d/dash-2.13.0"
"/home/ambrevar/.guix-profile/share/emacs/site-lisp/guix.d/magit-popup-2.12.0"
"/home/ambrevar/.guix-profile/share/emacs/site-lisp"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/site-lisp"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/site-lisp"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/vc"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/url"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/textmodes"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/progmodes"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/play"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/org"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/nxml"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/net"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/mh-e"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/mail"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/leim"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/language"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/international"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/image"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/gnus"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/eshell"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/erc"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/emulation"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/emacs-lisp"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/cedet"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/calendar"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/calc"
"/gnu/store/07g1rwvrj7wn4sw6hx10hbvcs1v2adyf-emacs-prerelease-26.1-rc1/share/emacs/26.1/lisp/obsolete")
--8<---------------cut here---------------end--------------->8---
Notice that there are two batches of guix.d/* folders:
/home/ambrevar/.guix-profile/share/emacs/site-lisp/guix.d/*
and
/var/guix/profiles/per-user/ambrevar/guix-profile/share/emacs/site-lisp/guix.d/popup-0.5.3
The former is to be expected, the latter only happens randomly.
I wonder why that is. I'd rather keep the Guix folders appended so that
they have lower priority than my user-local site-lisp files.
I'm now on Emacs 26.1 RC1 but I had the same issue with Guix' stock package.
De-logging + re-logging usually fixes it.
Any clue?
--
Pierre Neidhardt
interlard - vt., to intersperse; diversify
-- Webster's New World Dictionary Of The American Language
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Emacs load-path random order
2018-04-21 3:44 Emacs load-path random order Pierre Neidhardt
@ 2018-04-21 19:37 ` Chris Marusich
2018-04-22 6:27 ` Pierre Neidhardt
0 siblings, 1 reply; 3+ messages in thread
From: Chris Marusich @ 2018-04-21 19:37 UTC (permalink / raw)
To: Pierre Neidhardt; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 891 bytes --]
Hi Pierre,
Pierre Neidhardt <ambrevar@gmail.com> writes:
> Notice that there are two batches of guix.d/* folders:
>
> /home/ambrevar/.guix-profile/share/emacs/site-lisp/guix.d/*
>
> and
>
> /var/guix/profiles/per-user/ambrevar/guix-profile/share/emacs/site-lisp/guix.d/popup-0.5.3
>
> The former is to be expected, the latter only happens randomly.
>
> I wonder why that is.
How are you starting Emacs? From the command line? From the GNOME
Activities Overview [1]? Some other method? Are you doing anything
"strange" to modify your environment (e.g., running a custom
~/.xsession)? It matters because the way in which you start a program
can influence the environment in which the program runs, which can in
turn influence the load path of programs like Emacs.
Footnotes:
[1] https://wiki.gnome.org/Gnome3CheatSheet#Activities_Overview
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Emacs load-path random order
2018-04-21 19:37 ` Chris Marusich
@ 2018-04-22 6:27 ` Pierre Neidhardt
0 siblings, 0 replies; 3+ messages in thread
From: Pierre Neidhardt @ 2018-04-22 6:27 UTC (permalink / raw)
To: Chris Marusich; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 1844 bytes --]
Chris Marusich <cmmarusich@gmail.com> writes:
> How are you starting Emacs? From the command line? From the GNOME
> Activities Overview [1]? Some other method? Are you doing anything
> "strange" to modify your environment (e.g., running a custom
> ~/.xsession)? It matters because the way in which you start a program
> can influence the environment in which the program runs, which can in
> turn influence the load path of programs like Emacs.
I don't use GNOME, I use EXWM[1] (the Emacs X window manager) which I
start from a custom ~/.xsession with:
emacs --daemon -f exwm-enable
exec emacsclient -c
Other than that, I add my local site-lisp to the beginning of my
~/.emacs.d/init.el:
--8<---------------cut here---------------start------------->8---
;;; Site Lisp folder for local packages and development.
;; We need to roll it out manually since we want it first in the `load-path',
;; while `normal-top-level-add-subdirs-to-load-path' appends it to the very end.
(defun ambrevar/package-refresh-load-path (path)
"Add every non-hidden sub-folder of PATH to `load-path'."
(when (file-directory-p path)
(dolist (dir (directory-files path t "^[^\\.]"))
(when (file-directory-p dir)
(setq load-path (add-to-list 'load-path dir))
(dolist (subdir (directory-files dir t "^[^\\.]"))
(when (file-directory-p subdir)
(setq load-path (add-to-list 'load-path subdir))))))))
(let ((site-lisp (expand-file-name "site-lisp/" "~/.local/share/emacs/")))
(add-to-list 'load-path site-lisp)
(ambrevar/package-refresh-load-path site-lisp))
--8<---------------cut here---------------end--------------->8---
See the rest of my dotfiles there:
https://github.com/Ambrevar/dotfiles
[1] https://github.com/ch11ng/exwm
--
Pierre Neidhardt
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-22 6:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-21 3:44 Emacs load-path random order Pierre Neidhardt
2018-04-21 19:37 ` Chris Marusich
2018-04-22 6:27 ` Pierre Neidhardt
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.