From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: bug#21127: Problem with guix.el on hybrid systems. Date: Sat, 25 Jul 2015 10:52:17 +0300 Message-ID: <87fv4c3c9a.fsf@gmail.com> References: <876159eo9i.fsf@openmailbox.org> <87h9otfgbs.fsf@gnu.org> 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]:34698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIuGY-0007Zm-5N for bug-guix@gnu.org; Sat, 25 Jul 2015 03:53:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZIuGU-0008PZ-S9 for bug-guix@gnu.org; Sat, 25 Jul 2015 03:53:06 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:56878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIuGU-0008PN-PK for bug-guix@gnu.org; Sat, 25 Jul 2015 03:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZIuGU-0006Q8-4C for bug-guix@gnu.org; Sat, 25 Jul 2015 03:53:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87h9otfgbs.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 24 Jul 2015 22:31:19 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 21127@debbugs.gnu.org, Mathieu Lirzin Ludovic Court=C3=A8s (2015-07-24 23:31 +0300) wrote: > Mathieu Lirzin skribis: > >> From ca4360cc33f56dbfd1fa1367f68d3bd3d0d7c553 Mon Sep 17 00:00:00 2001 >> From: Mathieu Lirzin >> Date: Fri, 24 Jul 2015 12:59:20 +0200 >> Subject: [PATCH] emacs: Fix guix-guile-program. >> >> * emacs/guix-backend.el: Move to ... >> * emacs/guix-backend.el.in: ... here. >> (guix-guile-program): Default to the Guile used when building Guix to >> avoid breaking guix.el when installing another Guile. >> * configure.ac: Adapt to it. >> * .gitignore: Likewise. > > [...] > >> +(defvar guix-guile-program "@GUILE@" > > Sounds reasonable to me. > > Alternately, I wonder if it would make sense to define that variable in > guix-init.el to avoid having an additional .in file. > > Alex, WDYT? Mathieu, thanks for catching it! I also think that it is better to avoid converting "guix-backend.el" into ".in" file. I had the same question with 'guix-load-path' variable when Emacs UI was merging into Guix: this var was defined in "guix-backend.el" but it had to depend on @prefix@, so I just put another "(defvar =E2=80=A6)" into "guix-init.el.in". As you can see there are 2 definitions of 'guix-load-path': - in "guix-backend.el" (with an old "configure"-independent value) - and in "guix-init.el" (with the current default value). So I suggest to do the same with 'guix-guile-program', i.e. to put (defvar guix-guile-program "@GUILE" =E2=80=A6) into "guix-init.el.in" and that's it. Since "guix-init.el" is loaded the first, "defvar" in "guix-backend.el" will not override the default value. --=20 Alex