From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Emacs interface for Guix Date: Mon, 21 Jul 2014 23:26:10 +0200 Message-ID: <87zjg21k0d.fsf@gnu.org> References: <87zjg9rgih.fsf@gmail.com> <871ttlgzfl.fsf@gnu.org> <87vbqxqg3n.fsf@gmail.com> <87ha2fm3gk.fsf@gnu.org> <87r41hrdks.fsf@gmail.com> <8738dxe2jq.fsf@gnu.org> <87mwc4qzd5.fsf@gmail.com> <878uno9l7b.fsf@gnu.org> <87iomsq8fe.fsf@gmail.com> <874myb95j0.fsf@gnu.org> <87a983qken.fsf@gmail.com> <87k3764s1c.fsf@gnu.org> <8761iqr1my.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9L6E-0006BU-BB for guix-devel@gnu.org; Mon, 21 Jul 2014 17:26:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9L65-00004x-7h for guix-devel@gnu.org; Mon, 21 Jul 2014 17:26:22 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:37252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9L64-00004t-Vf for guix-devel@gnu.org; Mon, 21 Jul 2014 17:26:13 -0400 In-Reply-To: <8761iqr1my.fsf@gmail.com> (Alex Kost's message of "Mon, 21 Jul 2014 22:46:13 +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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Alex Kost Cc: guix-devel@gnu.org Alex Kost skribis: > Ludovic Court=C3=A8s (2014-07-21 20:04 +0400) wrote: [...] >> I think guix.el should be able to distinguish packages internally, so >> that when I choose, say, a specific =E2=80=9Cguile-2.0.11=E2=80=9D, that= =E2=80=99s really the >> one that gets installed (maybe it already does, I haven=E2=80=99t checke= d.) > > No it doesn't and I don't see how it can be done. A trick that may work is to propagate Scheme-side eq?-ness to the elisp side using =E2=80=98object-address=E2=80=99: (object-address some-package) = returns a number that uniquely identifies =E2=80=98some-package=E2=80=99 for the dura= tion of the Guile session. [...] > I didn't think much about it, but right now this is the only workaround > I can imagine. What do you think? What do you think of the trick above? Ludo=E2=80=99.