guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should guix-emacs-autoload-packages use GUIX_ENVIRONMENT?


From: Ricardo Wurmus
Subject: Re: Should guix-emacs-autoload-packages use GUIX_ENVIRONMENT?
Date: Thu, 27 Jul 2017 13:38:14 +0200
User-agent: mu4e 0.9.18; emacs 25.2.1

Alex Kost <address@hidden> writes:

> Kyle Meyer (2017-07-25 21:40 -0400) wrote:
>
>> Marius Bakke <address@hidden> writes:
>>
>>> Wait, isn't this what --pure is for?  I haven't followed the
>>> discussion, but I would expect `guix environment` to *add* to my
>>> current profile, and use '--pure' if I want a "clean" environment.
>>
>> I think the behavior here is unspecified because --pure is about
>> unsetting shell variables while this is about how the load-path and
>> autoloads are set up within an environment's Emacs instance.
>> Conceptually, though, I agree that a --pure flag would match
>> guix-emacs-autoload-packages considering only the environment's Emacs
>> packages, whereas no --pure flag would match adding the environment's to
>> the current profile's.
>>
>> But in the discussion so far, I've been assuming that currently there's
>> not a direct way for guix-emacs-autoload-packages to detect if --pure
>> was given.  If that's not true, I'd be happy with the behavior you
>> propose.
>
> I also don't see how you can detect from Emacs if it is running from
> guix environment with --pure or without.

I don’t think you can, but we could pollute the environment some more by
setting a variable that indicates that this is a pure environment…?

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]