From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Should guix-emacs-autoload-packages use GUIX_ENVIRONMENT? Date: Thu, 27 Jul 2017 13:38:14 +0200 Message-ID: <87wp6u5cux.fsf@elephly.net> References: <87zibwlymy.fsf@kyleam.com> <87eft6j1s3.fsf@gmail.com> <87379mpz1a.fsf@kyleam.com> <87379l1qip.fsf@gmail.com> <87h8y1jwv8.fsf@kyleam.com> <87shhkcibd.fsf@fastmail.com> <877eywkmb5.fsf@kyleam.com> <87mv7rge53.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dah7c-00087g-RB for guix-devel@gnu.org; Thu, 27 Jul 2017 07:38:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dah7a-0007ZT-4N for guix-devel@gnu.org; Thu, 27 Jul 2017 07:38:28 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21147) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dah7Z-0007Xk-Ri for guix-devel@gnu.org; Thu, 27 Jul 2017 07:38:26 -0400 In-reply-to: <87mv7rge53.fsf@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Alex Kost Cc: guix-devel Alex Kost writes: > Kyle Meyer (2017-07-25 21:40 -0400) wrote: > >> Marius Bakke 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