From: Alexandru-Sergiu Marton <brown121407@posteo.ro>
To: 42333@debbugs.gnu.org
Subject: bug#42333: Emacs: error on guix-emacs-autoload-packages
Date: Mon, 13 Jul 2020 12:41:08 +0300 [thread overview]
Message-ID: <87k0z7ycp7.fsf@posteo.ro> (raw)
In-Reply-To: <87r1tgj144.fsf@posteo.ro> (Alexandru-Sergiu Marton's message of "Sun, 12 Jul 2020 16:48:11 +0300")
Alexandru-Sergiu Marton <brown121407@posteo.ro> writes:
> This way guix-emacs-autoload-packages works again. I installed ALL the
> packages I needed from Guix (I ditched Doom Emacs) and generating my
> site works too now.
I managed to narrow down the problem. If I install Doom Emacs, Guix's
EMACSLOADPATH doesn't seem to be loaded at all into the load-path
variable. This can be fixed with:
(mapc (lambda (p) (add-load-path! p)) (split-string (getenv "EMACSLOADPATH") ":"))
At this point it doesn't complain about that contrib path not being
found. To get there, I pulled my config [1] and ran `doom sync`.
The next time I fired up Emacs and I tried to run
`guix-emacs-autoload-packages` it started to complain about that path.
So I guess somewhere in that processes it screws up the load-path even
more if it manages to add "$GUIX_PROFILE/share/emacs/site-lisp/contrib"
in there.
Since I couldn't find anything actually there or using that path, for
now I have this in my config:
(delete (concat (getenv "HOME") "/.guix-profile/share/emacs/site-lisp/contrib") load-path)
I still have no idea why is the thing behaving the way that it is since
I never had issues like this with the same config on my other machine.
If you have any pointers as to what might have happened or had similar
problems yourself I would love to hear from you.
[1] https://git.sr.ht/~brown121407/dotfiles/tree/master/doom/.config/doom
--
Sergiu
next prev parent reply other threads:[~2020-07-13 6:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-12 10:11 bug#42333: Emacs: error on guix-emacs-autoload-packages Alexandru-Sergiu Marton
2020-07-12 13:48 ` Alexandru-Sergiu Marton
2020-07-13 9:41 ` Alexandru-Sergiu Marton [this message]
2020-07-15 16:23 ` Maxim Cournoyer
2020-07-19 19:48 ` Alexandru-Sergiu Marton
2020-07-24 23:03 ` Brett Gilio
2022-07-14 2:42 ` bug#42333: Doom Emacs breaks the Emacs autoloads mechanism used in Guix Maxim Cournoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k0z7ycp7.fsf@posteo.ro \
--to=brown121407@posteo.ro \
--cc=42333@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).