Subject: Re: bug#22550: (require 'magit) produces error: "no such file or directory" "dash"

From: [email-masked] (Ludovic Courtès)
Date: Mon, 08 Feb 2016 10:22:38 +0100

Alex Kost <[email-masked]> skribis:

> Ludovic Courtès (2016-02-06 15:38 +0300) wrote:
>
>> Alex Kost <[email-masked]> skribis:
>>
>>> myglc2 (2016-02-05 17:52 +0300) wrote:
>>
>> [...]
>>
>>>> b) make a new/improved 'guix-edit' that prompts for guix-directory if it
>>>>    is not already not set, perhaps also refering the user to "8.1
>>>>    Building from Git".
>>>
>>> As I see it, 'M-x guix-edit' should do the same as 'guix edit' in shell,
>>> i.e. it should open a package file without additional prompting.  OTOH I
>>> think it would be good to improve 'guix-edit' so that with C-u it will
>>> prompt for a directory with guix packages.
>>
>> Yes, that would be nice.  However, AIUI, it would require spawning a new
>> Guix REPL for this specific ‘guix-directory’ value, no?
>
> No, not at all.  The attached patch implements this.

Oh right, for guix-edit that can work.

> From 292c5f137f6cc3cf72e71e2dd5fa40f38fc7d7bb Mon Sep 17 00:00:00 2001
> From: Alex Kost <[email-masked]>
> Date: Sun, 7 Feb 2016 11:08:57 +0300
> Subject: [PATCH] emacs: 'C-u M-x guix-edit' prompts for directory.
>
> * emacs/guix-base.el (guix-find-location, guix-edit): Add optional
>   'directory' argument.

LGTM!

Perhaps the manual should also mention C-u M-x guix-edit?

Thank you!

Ludo’.