From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Should guix-emacs-autoload-packages use GUIX_ENVIRONMENT? Date: Tue, 25 Jul 2017 00:19:58 +0300 Message-ID: <87379l1qip.fsf@gmail.com> References: <87zibwlymy.fsf@kyleam.com> <87eft6j1s3.fsf@gmail.com> <87379mpz1a.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZklr-0003tf-MU for guix-devel@gnu.org; Mon, 24 Jul 2017 17:20:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZklo-0002JQ-I1 for guix-devel@gnu.org; Mon, 24 Jul 2017 17:20:07 -0400 Received: from mail-lf0-x22b.google.com ([2a00:1450:4010:c07::22b]:36939) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dZklo-0002HG-A1 for guix-devel@gnu.org; Mon, 24 Jul 2017 17:20:04 -0400 Received: by mail-lf0-x22b.google.com with SMTP id m86so42043233lfi.4 for ; Mon, 24 Jul 2017 14:20:02 -0700 (PDT) In-Reply-To: <87379mpz1a.fsf@kyleam.com> (Kyle Meyer's message of "Sun, 23 Jul 2017 18:29:53 -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-23 18:29 -0400) wrote: > 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". Oh, right, now I see why "-Q" is not what you want. >> 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. OK, now I understand your point and I don't object against your patch. OTOH I'm pretty sure there are people who will be surprised that when emacs is started under "guix environment", it ignores packages from the "~/guix-profile". >> 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". Now I'm also not sure if "along with" or "instead" is better. I don't have a preference, so I agree with any choice :-) -- Alex