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: Fri, 22 Aug 2014 10:56:39 +0200 Message-ID: <87ppfs6gxk.fsf@gnu.org> References: <87k3719v7p.fsf@gmail.com> <87r419fa50.fsf@gnu.org> <87fvho9fqm.fsf@gmail.com> <87a97taixl.fsf@gmail.com> <87sil2rbly.fsf@gnu.org> <87tx5idn7f.fsf_-_@gmail.com> <87egwlkcy1.fsf@gnu.org> <87ppg5el2i.fsf@gmail.com> <87d2c5h4if.fsf@gnu.org> <87lhqsev1d.fsf@gmail.com> <877g2c74xh.fsf@gnu.org> <87ha1gds3w.fsf@gmail.com> <8761hsmxkl.fsf@gnu.org> <87zjf4d1mh.fsf@gmail.com> <87mwb0b3fq.fsf@gnu.org> <87ha17ctyv.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]:36330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKkeS-0007VI-Ah for guix-devel@gnu.org; Fri, 22 Aug 2014 04:57:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKkeH-0003Oy-Cr for guix-devel@gnu.org; Fri, 22 Aug 2014 04:56:52 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:42050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKkeH-0003Om-5S for guix-devel@gnu.org; Fri, 22 Aug 2014 04:56:41 -0400 In-Reply-To: <87ha17ctyv.fsf_-_@gmail.com> (Alex Kost's message of "Wed, 20 Aug 2014 14:54:00 +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: > Thanks, now (with the latest =E2=80=9Cguix pull=E2=80=9D), installing/upg= rading/removing > should work in "guix.el". If you (or someone else) wish to try it, you > may use: > > (setq guix-dry-run t) > > (It has the same meaning as =E2=80=9C--dry-run=E2=80=9D option). I gave it a try, but AFAICS, when the REPL is started as =E2=80=9Cinternal= =E2=80=9D, guix-main.scm isn=E2=80=99t loaded, and thus =E2=80=9CInstall=E2=80=9D fail= s: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (process-package-actions #:install '((58935712 "out"))= #:upgrade '() #:remove '() #:use-substitutes? #t #:dry-run? #f) ;;; :11:0: warning: possibly unbound variable `process-package-actio= ns' :11:0: In procedure #:11= :0 ()>: :11:0: In procedure module-lookup: Unbound variable: process-= package-actions --8<---------------cut here---------------end--------------->8--- Did I miss something? Besides, I like M-x guix-generations, pretty cool. :-) > Also I would like to add support for deleting generations (to > "guix.el"), so I think it would be good to export =E2=80=98delete-generat= ion=E2=80=99 > from "scripts/package.scm". WDYT? Yes, that makes sense, one could use it from the *Guix Generation List* buffer. Regarding package installation/removal/upgrade, I think it would be great UI-wise to support transactions that perform multiple operations. I was initially thinking of something similar to what package.el does: marks packages from installation/removal, and then hit =E2=80=98x=E2=80=99 = to execute the transaction. So the current =E2=80=9CInstall=E2=80=9D and =E2=80=9CDel= ete=E2=80=9D buttons could be changed to just mark things for installation/removal. WDYT? Thanks, Ludo=E2=80=99.