From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Should guix-emacs-autoload-packages use GUIX_ENVIRONMENT? Date: Tue, 25 Jul 2017 21:40:30 -0400 Message-ID: <877eywkmb5.fsf@kyleam.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> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daBJZ-0002dO-7d for guix-devel@gnu.org; Tue, 25 Jul 2017 21:40:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1daBJU-0005hR-KV for guix-devel@gnu.org; Tue, 25 Jul 2017 21:40:41 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:51486 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1daBJU-0005ed-A0 for guix-devel@gnu.org; Tue, 25 Jul 2017 21:40:36 -0400 In-Reply-To: <87shhkcibd.fsf@fastmail.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: Marius Bakke , Alex Kost Cc: guix-devel 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. -- Kyle