From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Emacs in multiple profiles Date: Mon, 28 Oct 2019 08:49:26 +0100 Message-ID: <874kztgvi1.fsf@ambrevar.xyz> References: <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net> <878tajzu03.fsf@gmail.com> <87a7uyd7qy.fsf@gmail.com> <874ll51mq3.fsf@gmail.com> <87zi2t4jgh.fsf@gmail.com> <877ep4z44b.fsf@gmail.com> <87tv88ihzc.fsf@ambrevar.xyz> <878spgo7ex.fsf@gmail.com> <87o8yccwtq.fsf@ambrevar.xyz> <871rv1ed8v.fsf@gmail.com> <87mudpm5nt.fsf@ambrevar.xyz> <87sgndcz38.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48262) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOzmN-0002aI-Dm for help-guix@gnu.org; Mon, 28 Oct 2019 03:49:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iOzmM-0000XC-41 for help-guix@gnu.org; Mon, 28 Oct 2019 03:49:31 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:57659) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iOzmL-0000Wg-Ta for help-guix@gnu.org; Mon, 28 Oct 2019 03:49:30 -0400 In-Reply-To: <87sgndcz38.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Maxim Cournoyer Cc: Alex Kost , myglc2@gmail.com, help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Maxim Cournoyer writes: > I'm not sure I understand correctly, but perhaps you'd want to use > --pure, so to make sure nothing from your current environment > interferes? > > But that's still leave site-start.el to look into ~/.guix-profile, I > believe. You could also try with emacs-minimal, which doesn't have any > of the emacs-guix additions. site-start.el loads guix-emacs.el, which in turn runs this piece of code: =2D-8<---------------cut here---------------start------------->8--- (defun guix-emacs-autoload-packages (&rest profiles) "Autoload Emacs packages installed in PROFILES. If PROFILES are not specified, use a default user and system profiles. 'Autoload' means add directories with Emacs packages to `load-path' and load 'autoloads' files matching `guix-emacs-autoloads-regexp'." (interactive (list (if (fboundp 'guix-read-package-profile) (funcall 'guix-read-package-profile) guix-user-profile))) (let* ((env (getenv "GUIX_ENVIRONMENT")) (profiles (or profiles (append (list "/run/current-system/profile" guix-user-profile) (and env (list env)))))) (dolist (profile profiles) ...))) =2D-8<---------------cut here---------------end--------------->8--- As you can see, the GUIX_ENVIRONMENT is scanned for Emacs packages. So my test is moot. Now I'm realizing I could have tested a smarted way: =2D Make sure ~/.guix-profile does not have the packages being tested (e.g. expand-region here). =2D Install patched Emacs + tested package to a new profile FOO. =2D Source `FOO/etc/profile`. =2D Run `FOO/bin/emacs` and see if the package is found. Anyways, waiting for your next patch! :) =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl22nYYACgkQm9z0l6S7 zH87Mgf/TGdd4CSGDz5zQd/iq88+ckYU9y0Uyinm3MLzzBtto+DTN/WFRDuwSDsT 55Dzfhfg8xzOl8wBi5kD35T6B88qVSuQXn3E5E49FHUhJMUYv/q9vXKmctLpte2W 0/z7j09XnJnEPbV6NeiWUWcJARYIb4WqMOOurVc+CYEcaO8F9ctYhH7A9thYpNMh n9STfUzft8/b9r8q8JWbaHEjCr08qpyCr29wthlWUy5nMzG1JC00jLyGtP6R2nId ngxi58YCqRXJEbq7meTijmNGNNkW0C8yx2pdAAIUQd3acNc2z4l6VR3vJ3Cdbp2v 1srQGyF7Nr1I3lrR1NHNqHxWMHu5iA== =pl+G -----END PGP SIGNATURE----- --=-=-=--