[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to use Guix.el from Git?
From: |
Mathieu Lirzin |
Subject: |
Re: How to use Guix.el from Git? |
Date: |
Sun, 22 Nov 2015 19:20:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Hi Alex,
Alex Kost <address@hidden> writes:
> Mathieu Lirzin (2015-11-22 15:14 +0300) wrote:
>
[...]
>> ERROR: In procedure primitive-load-path:
>> ERROR: In procedure primitive-load-path: Unable to find file "guix-main" in
>> load path
>
> So Guix REPL is dead after this, right?
It is.
> It looks like your "~/src/gnu/guix/emacs" is not appended to guile
> %load-path (it is done in `guix-start-repl' by cons-ing
> `guix-load-path' to `geiser-guile-load-path').
>
> Could you check "C-h v guix-load-path" to be sure that its value is
> really "~/src/gnu/guix/emacs".
--8<---------------cut here---------------start------------->8---
guix-load-path is a variable defined in `guix-backend.el'.
Its value is "~/src/gnu/guix/emacs"
--8<---------------cut here---------------end--------------->8---
>
> Also just in case, show the value of `guix-helper-file' variable.
--8<---------------cut here---------------start------------->8---
guix-helper-file is a variable defined in `guix-backend.el'.
Its value is "/home/mthl/src/gnu/guix/emacs/guix-helper.scm"
--8<---------------cut here---------------end--------------->8---
These two variables helped me figure out that the problem was the use of
“~” in:
(let ((dir "~/src/gnu/guix/emacs"))
...
When changing it with “/home/mthl” it works! To avoid this kind of
mistake in the future, a simple fix would be to change the example in
the documentation, with:
(let ((dir "/absolute/path/to/your-guix-git-tree/emacs"))
...
But is there a way to change the implementation to let users use
relative path?
Thanks,
--
Mathieu Lirzin