unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mathieu Lirzin <mthl@gnu.org>
To: Alex Kost <alezost@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: How to use Guix.el from Git?
Date: Sun, 22 Nov 2015 19:20:47 +0100	[thread overview]
Message-ID: <87egfh3ngg.fsf@gnu.org> (raw)
In-Reply-To: <87d1v2otah.fsf@gmail.com> (Alex Kost's message of "Sun, 22 Nov 2015 20:09:10 +0300")

Hi Alex,

Alex Kost <alezost@gmail.com> 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

  reply	other threads:[~2015-11-22 18:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-22 12:14 How to use Guix.el from Git? Mathieu Lirzin
2015-11-22 17:09 ` Alex Kost
2015-11-22 18:20   ` Mathieu Lirzin [this message]
2015-11-22 21:05     ` Alex Kost
2015-11-22 21:15       ` Mathieu Lirzin
2015-11-23  8:35         ` Alex Kost

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=87egfh3ngg.fsf@gnu.org \
    --to=mthl@gnu.org \
    --cc=alezost@gmail.com \
    --cc=guix-devel@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).