From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Should guix-emacs-autoload-packages use GUIX_ENVIRONMENT? Date: Wed, 26 Jul 2017 23:02:48 +0300 Message-ID: <87mv7rge53.fsf@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daSWH-0002t0-Pm for guix-devel@gnu.org; Wed, 26 Jul 2017 16:02:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1daSWE-0006Rm-9V for guix-devel@gnu.org; Wed, 26 Jul 2017 16:02:57 -0400 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]:34788) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1daSWE-0006Q0-2U for guix-devel@gnu.org; Wed, 26 Jul 2017 16:02:54 -0400 Received: by mail-lf0-x243.google.com with SMTP id d80so5598524lfg.1 for ; Wed, 26 Jul 2017 13:02:52 -0700 (PDT) In-Reply-To: <877eywkmb5.fsf@kyleam.com> (Kyle Meyer's message of "Tue, 25 Jul 2017 21:40:30 -0400") 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: Kyle Meyer Cc: guix-devel 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. -- Alex