From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Should guix-emacs-autoload-packages use GUIX_ENVIRONMENT? Date: Sun, 23 Jul 2017 18:29:53 -0400 Message-ID: <87379mpz1a.fsf@kyleam.com> References: <87zibwlymy.fsf@kyleam.com> <87eft6j1s3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZPNv-0000dZ-SM for guix-devel@gnu.org; Sun, 23 Jul 2017 18:30:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZPNr-0005Cf-Sm for guix-devel@gnu.org; Sun, 23 Jul 2017 18:29:59 -0400 Received: from pb-smtp1.pobox.com ([64.147.108.70]:56763 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 1dZPNr-0005Bv-Kj for guix-devel@gnu.org; Sun, 23 Jul 2017 18:29:55 -0400 In-Reply-To: <87eft6j1s3.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-22 21:39 -0400) wrote: > >> I noticed that Emacs packages from the user's profile leak into guix >> environment calls. > > As for me, this is a natural behaviour. If you want to be safe from any > external packages, site settings, etc., run "emacs -Q". I want "-q" rather than "-Q" because I want the Emacs instance to autoload the Emacs packages that I've given as arguments to "guix environment". > I'm not sure. I think if you run "emacs -q", you really want "emacs -Q". > Otherwise, if you start emacs normally, you probably don't want to ignore > emacs packages from your guix profile. Maybe I'm underestimating all the ways people use "guix environment". When I use it, I'm interested in getting an isolated environment, usually for testing, and in this case I don't want the Emacs packages from my profile. But sure, I can use "emacs -Q" and then evaluate something similar to what Guix puts in site-start.el, modifying it to only look at GUIX_ENVIRONMENT. > However, I agree that GUIX_ENVIRONMENT should be honored, but as I wrote > *not instead* but *along with* the default profiles. So if you start > emacs like this: > > guix environment --ad-hoc emacs emacs-wget -- emacs > > it should contain emacs-wget in its load-path. WDYT? I certainly agree with that load-path should include emacs-wget. I'm just not sure I agree with the "along with". Anyway, as I said above, it's easy enough to get the behavior I want with "emacs -Q" and a custom guix-emacs-autoload-packages call. Thanks for your thoughts. -- Kyle