Re: [ANN] Emacs-Guix 0.5.1

2019-01-08 Thread Ludovic Courtès
Hi,

Alex Kost  skribis:

> Ricardo Wurmus (2019-01-06 00:49 +0100) wrote:
>
>> Hi Alex,
>>
>>> zimoun answered correctly.  I think it is the same problem as several
>>> people have on non-GuixSD system.  Most likely, it will not be fixed on
>>> Emacs-Guix side.  The only workaround I know is "guix package -i guix".
>>
>> Would it be feasible for Emacs-Guix to use
>> “~/.config/guix/current/bin/guix repl”, which would have the effect of
>> setting the load path as expected?
>
> Interesting idea!  But AFAICT it is impossible: Emacs-Guix needs to run
> Geiser in one way or another, but if you try:
>
>   (setq geiser-guile-binary '("guix" "repl"))
>   "M-x geiser"
>
> it will fail because geiser tries to run it with "-q" and "-L" (with a
> directory with Geiser Guile modules).  Obviously these options are not
> supported by "guix repl".  Above that, Emacs-Guix uses "--listen"
> option.

It would make sense to add these options to ‘guix repl’.

Ludo’.



Re: [ANN] Emacs-Guix 0.5.1

2019-01-06 Thread Alex Kost
Ricardo Wurmus (2019-01-06 00:49 +0100) wrote:

> Hi Alex,
>
>> zimoun answered correctly.  I think it is the same problem as several
>> people have on non-GuixSD system.  Most likely, it will not be fixed on
>> Emacs-Guix side.  The only workaround I know is "guix package -i guix".
>
> Would it be feasible for Emacs-Guix to use
> “~/.config/guix/current/bin/guix repl”, which would have the effect of
> setting the load path as expected?

Interesting idea!  But AFAICT it is impossible: Emacs-Guix needs to run
Geiser in one way or another, but if you try:

  (setq geiser-guile-binary '("guix" "repl"))
  "M-x geiser"

it will fail because geiser tries to run it with "-q" and "-L" (with a
directory with Geiser Guile modules).  Obviously these options are not
supported by "guix repl".  Above that, Emacs-Guix uses "--listen"
option.

So I'm afraid as long as "guix repl" options are incompatible with
"guile" ones, it can't be used by Emacs-Guix.

-- 
Alex



Re: [ANN] Emacs-Guix 0.5.1

2019-01-06 Thread Ricardo Wurmus


Benjamin Slade  writes:

> Thanks all, doing `guix package -i guix` indeed solved this issue.

This is generally not recommend, because you’ll end up with an older
Guix than the one you installed it with.  To ensure that the correct
Guix is used, please make sure that ~/.config/guix/current/bin appears
first in PATH.

-- 
Ricardo




Re: [ANN] Emacs-Guix 0.5.1

2019-01-05 Thread Benjamin Slade
Thanks all, doing `guix package -i guix` indeed solved this issue.



On 2019-01-05T06:05:20-0700, zimoun  wrote:

 > Dear Benjamin,

 > If I understand well, it is the same issue than the one reported here:
 > https://github.com/alezost/guix.el/issues/28

 > Recently, Alex explained why in the second part of this message:
 > https://lists.gnu.org/archive/html/help-guix/2019-01/msg00020.html

 > One (not-yet satisfactory) fix seems to install guix itself in the profile:
 >   guix package -i guix
 > then to correctly add ~/.config/guix/current/.
 > It works for me.

 > Hope that help.


 > All the best,
 > simon


-- 
Benjamin Slade - https://babbagefiles.xyz
  `(pgp_fp: ,(21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19))
'(sent by mu4e on Emacs running under GNU/Linux . https://gnu.org )
   `(Choose Linux ,(Choose Freedom) . https://linux.com )



Re: [ANN] Emacs-Guix 0.5.1

2019-01-05 Thread Ricardo Wurmus


Hi Alex,

> zimoun answered correctly.  I think it is the same problem as several
> people have on non-GuixSD system.  Most likely, it will not be fixed on
> Emacs-Guix side.  The only workaround I know is "guix package -i guix".

Would it be feasible for Emacs-Guix to use
“~/.config/guix/current/bin/guix repl”, which would have the effect of
setting the load path as expected?

--
Ricardo




Re: [ANN] Emacs-Guix 0.5.1

2019-01-05 Thread Alex Kost
Benjamin Slade (2019-01-04 15:12 -0700) wrote:

> I love Emacs-Guix - thank you for this.
>
> Relatedly - I'm trying to debug an issue: so on my both pure GuixSD
> machine and on my Arch machine with standalone Guix binary installer,
> =guix-all-packages= shows me 9213 packages, but on my Void machine with
> standalone Guix binary installer, the same command only shows me around
> 900(!) packages. But on the same machine, the expected full range of
> Guix packages are available in the terminal via =guix package=. What
> could cause Emacs-Guix to only show a subset of packages in this one
> case?

zimoun answered correctly.  I think it is the same problem as several
people have on non-GuixSD system.  Most likely, it will not be fixed on
Emacs-Guix side.  The only workaround I know is "guix package -i guix".

-- 
Alex



Re: [ANN] Emacs-Guix 0.5.1

2019-01-05 Thread zimoun
Dear Benjamin,

If I understand well, it is the same issue than the one reported here:
https://github.com/alezost/guix.el/issues/28

Recently, Alex explained why in the second part of this message:
https://lists.gnu.org/archive/html/help-guix/2019-01/msg00020.html

One (not-yet satisfactory) fix seems to install guix itself in the profile:
  guix package -i guix
then to correctly add ~/.config/guix/current/.
It works for me.

Hope that help.


All the best,
simon



Re: [ANN] Emacs-Guix 0.5.1

2019-01-04 Thread Benjamin Slade
I love Emacs-Guix - thank you for this.

Relatedly - I'm trying to debug an issue: so on my both pure GuixSD
machine and on my Arch machine with standalone Guix binary installer,
=guix-all-packages= shows me 9213 packages, but on my Void machine with
standalone Guix binary installer, the same command only shows me around
900(!) packages. But on the same machine, the expected full range of
Guix packages are available in the terminal via =guix package=. What
could cause Emacs-Guix to only show a subset of packages in this one
case?

--
Benjamin Slade - https://babbagefiles.xyz
  `(pgp_fp: ,(21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19))
'(sent by mu4e on Emacs running under GNU/Linux . https://gnu.org )
   `(Choose Linux ,(Choose Freedom) . https://linux.com )


On 2018-12-23T13:15:39-0700, Alex Kost  wrote:

 > Hello, Emacs-Guix (Emacs interface for GNU Guix) version 0.5.1 has been
 > released.  If you are not familiar with it yet, you may try it with:
 > ‘guix package -i emacs-guix’ and "M-x guix".

 > Summary of the new features:

 > * M-x guix

 >   This is the *new* "M-x guix" which is a popup interface for the rest
 >   Emacs-Guix commands.  You may find a screenshot of this popup window
 >   at .

 >   The old "M-x guix" (interface for guix shell commands) was renamed to
 >   "M-x guix-command".  Also you can reach it from the new "M-x guix"
 >   with "c" key.

 > * M-x guix-set-emacs-environment

 >   This command sets Emacs environment according to a specified profile.
 >   Note that after calling this command, the whole Emacs will have a new
 >   environment (you may check ‘process-environment’ variable), so "M-x
 >   shell" or any other process will inherit this environment.

 >   Many thanks to Jan Nieuwenhuizen for inventing and implementing this
 >   command.

 > * "Total size" messages in "Guix Store Items" buffer

 >   Now, whenever this buffer is displayed (for example, after "M-x
 >   guix-store-dead-items"), a minibuffer message will display total size
 >   of the listed store items.  Also you can mark several items (with "m")
 >   and press "z" to get their total size.

 >   Thanks to Pierre Neidhardt for the idea of this feature.

 > --
 > Alex



[ANN] Emacs-Guix 0.5.1

2018-12-23 Thread Alex Kost
Hello, Emacs-Guix (Emacs interface for GNU Guix) version 0.5.1 has been
released.  If you are not familiar with it yet, you may try it with:
‘guix package -i emacs-guix’ and "M-x guix".

Summary of the new features:

* M-x guix

  This is the *new* "M-x guix" which is a popup interface for the rest
  Emacs-Guix commands.  You may find a screenshot of this popup window
  at .

  The old "M-x guix" (interface for guix shell commands) was renamed to
  "M-x guix-command".  Also you can reach it from the new "M-x guix"
  with "c" key.

* M-x guix-set-emacs-environment

  This command sets Emacs environment according to a specified profile.
  Note that after calling this command, the whole Emacs will have a new
  environment (you may check ‘process-environment’ variable), so "M-x
  shell" or any other process will inherit this environment.

  Many thanks to Jan Nieuwenhuizen for inventing and implementing this
  command.

* "Total size" messages in "Guix Store Items" buffer

  Now, whenever this buffer is displayed (for example, after "M-x
  guix-store-dead-items"), a minibuffer message will display total size
  of the listed store items.  Also you can mark several items (with "m")
  and press "z" to get their total size.

  Thanks to Pierre Neidhardt for the idea of this feature.

-- 
Alex