From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: emacs byte-compiled packages incompatibilities (was Re: emacs-guix invalid byte opcode: op=183 ptr=25) Date: Thu, 28 Feb 2019 16:11:53 +0100 Message-ID: <874l8ogd6u.fsf@ambrevar.xyz> References: <20190228.192814.35659745992274650.kumagusu08@gmail.com> <87ef7sqjvz.fsf@ambrevar.xyz> <87o96w2cmm.fsf@roquette.mug.biscuolo.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:56187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzNM8-0008NV-VB for help-guix@gnu.org; Thu, 28 Feb 2019 10:12:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzNM6-00017b-KC for help-guix@gnu.org; Thu, 28 Feb 2019 10:12:16 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:47591) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gzNM4-00011U-Pr for help-guix@gnu.org; Thu, 28 Feb 2019 10:12:14 -0500 In-reply-to: <87o96w2cmm.fsf@roquette.mug.biscuolo.net> 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: Giovanni Biscuolo Cc: help-guix --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > as I sayd above, I still don't know how to skip loading packages from > ~/.emacs.d/elpa when in "guix emacs" To test if Emacs is from Guix, you can =2D-8<---------------cut here---------------start------------->8--- (if (require 'guix-emacs nil 'noerror) ; Code for Guix Emacs ; Code for non-Guix Emacs ) =2D-8<---------------cut here---------------end--------------->8--- In particular, you can set `package-user-dir' and call (package-initialize)= for non-Guix Emacs. > when using the "native" one, emacs could be started using a different > user-emacs-directory: this way emacs installed packages (from > ELPA/MELPA or manually) will be available only in that environment >=20 > but this solution is not good for me, since I should maintain two > different config trees: one for each emacs... no no no :-O Indeed, just set different `package-user-dir' and keep the same config :) =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlx3+jkACgkQm9z0l6S7 zH+93Af+K9ZdC9ObkZymd3YP99gwQB3fYz+CGH8JIMPdAVS0mZAXQQ36A9h5UCdW FoqRl+RuPWarbA+pSYXlc1RmNnZwkuZjnQIeo5jPJJRtpJcuxaltn2rP8DsCeZ8C w03Jfmjb2bCF0a0ziNDV05y3ojGXNgRV3MqJpquT8n3CiZe8Iut/jpV25yD2bVQQ nBoGMnsBb2rdbQWtqvOVu5er4AvWhhu9uuSco4JE/fG90UVKJbGJdtKUNiVIHxRM jpDIeZQ/fgRbYz1Fi9JXmCKXHuvthox3Vcp3xtZ+ak3Oyf8wckAZ+RL5aDfSjMcE DDFIOlMEJaV710gXyq5P2AHu0Cv4JQ== =Wu52 -----END PGP SIGNATURE----- --=-=-=--