unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Alex Kost <alezost@gmail.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Should guix-emacs-autoload-packages use GUIX_ENVIRONMENT?
Date: Thu, 27 Jul 2017 13:38:14 +0200	[thread overview]
Message-ID: <87wp6u5cux.fsf@elephly.net> (raw)
In-Reply-To: <87mv7rge53.fsf@gmail.com>


Alex Kost <alezost@gmail.com> writes:

> Kyle Meyer (2017-07-25 21:40 -0400) wrote:
>
>> Marius Bakke <mbakke@fastmail.com> 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	other threads:[~2017-07-27 11:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-23  1:39 Should guix-emacs-autoload-packages use GUIX_ENVIRONMENT? Kyle Meyer
2017-07-23 21:12 ` Alex Kost
2017-07-23 22:29   ` Kyle Meyer
2017-07-24 21:19     ` Alex Kost
2017-07-24 22:25       ` Kyle Meyer
2017-07-25 21:33         ` Marius Bakke
2017-07-26  1:40           ` Kyle Meyer
2017-07-26 20:02             ` Alex Kost
2017-07-27 11:38               ` Ricardo Wurmus [this message]
2017-07-26 20:06         ` Alex Kost
2017-07-27  5:04           ` Kyle Meyer

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=87wp6u5cux.fsf@elephly.net \
    --to=rekado@elephly.net \
    --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).