From: Konrad Hinsen <konrad.hinsen@fastmail.net>
To: Ivan Vilata i Balaguer <ivan@selidor.net>, help-guix@gnu.org
Subject: Re: Emacs not seeing newer packages after pull
Date: Tue, 31 Mar 2020 20:25:02 +0200 [thread overview]
Message-ID: <m1o8scmlfl.fsf@kh-macbookpro.home> (raw)
In-Reply-To: <m18sjgipmg.fsf@ordinateur-de-catherine--konrad.home>
Konrad Hinsen <konrad.hinsen@fastmail.net> writes:
> No, and yes. Meaning that I most definitely didn't expect it, but I
> confirm your observations. And I am running Guix System, so it's not
> related to your Guix-under-Debian installation.
I did some experiments in the Guix REPL created by emacs-guix, but
I don't understand what's happening. Here I am exploring
emacs-caps-lock, a package that I got with today's pull:
scheme@(emacs-guix)> (%search-load-path "gnu/packages/emacs-xyz")
$4 = "/home/hinsen/.config/guix/current/share/guile/site/3.0/gnu/packages/emacs-xyz.scm"
Looks OK. Let's look at the module and its filename:
scheme@(emacs-guix)> (resolve-module '(gnu packages emacs-xyz))
$5 = #<directory (gnu packages emacs-xyz) 7fb01ffb3280>
scheme@(emacs-guix)> (module-filename (resolve-module '(gnu packages emacs-xyz)))
$6 = "gnu/packages/emacs-xyz.scm"
A relative filename, but relative to what? Why isn't this an absolute
one? As for the package:
scheme@(emacs-guix)> (module-variable (resolve-module '(gnu packages emacs-xyz)) 'emacs-caps-lock)
$7 = #f
It's not in there (but it is in the source code). And now for the real
surprise:
scheme@(emacs-guix)> (reload-module (resolve-module '(gnu packages emacs-xyz)))
$8 = #<directory (gnu packages emacs-xyz) 7fb01ffb3280>
scheme@(emacs-guix)> (module-filename (resolve-module '(gnu packages emacs-xyz)))
$9 = "/home/hinsen/.config/guix/current/share/guile/site/3.0/gnu/packages/emacs-xyz.scm"
scheme@(emacs-guix)> (module-variable (resolve-module '(gnu packages emacs-xyz)) 'emacs-caps-lock)
$10 = #<variable 7fb010e61210 value: #<package emacs-caps-lock@1.0 /home/hinsen/.config/guix/current/share/guile/site/3.0/gnu/packages/emacs-xyz.scm:1745 7fb01398ef20>>
What the heck has Guile been loading the first time???
Cheers,
Konrad
next prev parent reply other threads:[~2020-03-31 18:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-31 4:47 Emacs not seeing newer packages after pull Ivan Vilata i Balaguer
2020-03-31 14:08 ` Konrad Hinsen
2020-03-31 18:25 ` Konrad Hinsen [this message]
2020-04-01 0:04 ` Ivan Vilata i Balaguer
2020-04-02 7:20 ` Konrad Hinsen
2020-04-07 0:44 ` Ivan Vilata i Balaguer
2020-04-07 8:16 ` Konrad Hinsen
2020-04-07 19:44 ` Ivan Vilata i Balaguer
2020-04-09 1:25 ` Ivan Vilata i Balaguer
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1o8scmlfl.fsf@kh-macbookpro.home \
--to=konrad.hinsen@fastmail.net \
--cc=help-guix@gnu.org \
--cc=ivan@selidor.net \
/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 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.