From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: "M-x guix" - magit-like interface for guix commands Date: Wed, 26 Aug 2015 14:35:41 +0300 Message-ID: <87wpwiwacy.fsf@gmail.com> References: <87zj1u704r.fsf@gmail.com> <87wpww8t9h.fsf@gmail.com> <87mvxfgjiq.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]:59028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUYzb-0000Zx-3E for guix-devel@gnu.org; Wed, 26 Aug 2015 07:35:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUYzW-0001CC-OI for guix-devel@gnu.org; Wed, 26 Aug 2015 07:35:46 -0400 In-Reply-To: <87mvxfgjiq.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 25 Aug 2015 23:12:13 +0200") 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel Ludovic Court=C3=A8s (2015-08-26 00:12 +0300) wrote: > Alex Kost skribis: > >> Thompson, David (2015-08-14 17:40 +0300) wrote: [...] >>> depending on Magit is too heavy a dependency. >> >> It does not depend on the whole Magit but only on a single >> "magit-popup.el" file which may be installed separately (available on >> Melpa, for example). So potentially we can make a package just for this >> library and use it. >> >> However, according to its manual=C2=B9, it will be superseded by a gener= al >> library which will not be a part of magit, so eventually it will be a >> light-weight dependency I think. >> >> Anyway, we already have a heavy dependency for Emacs interface (Geiser). > > Yes, but Geiser is an =E2=80=9Cobvious=E2=80=9D one that cannot be avoide= d. > > I haven=E2=80=99t tested wip-emacs-popup-ui yet because I have yet to swi= tch to > Magit 2 (I=E2=80=99m slightly afraid of breaking my workflow, maybe unrea= sonably > so!). Magit2 broke my workflow completely when I switched to it several months ago, and it took some time to set it up for my needs. > That said, since the functionality is in a separate file, people who > don=E2=80=99t have magit-popup.el can just choose to not use M-x guix whi= le > still being available to use the other features, right? Yes. I think I'll mention in the manual that it is an optional dependency used for =E2=80=9CM-x guix=E2=80=9D. >>> I noticed an 'e' for 'environment'. I imagine that's just a placeholde= r. ;) >> >> Not really, all commands (including 'environment') are ready to use. >> You just specify the options you want in the magit manner and then you r= un >> "Execute" action. And the specified command is executed in Guix REPL. >> >> Specifically for 'environment' it may lead to a very interesting result >> as it will spawn an external process, unless --dry-run or --search-paths >> options were specified. But still it will=E2=80=A6 let's say=E2=80=A6 w= ork, but only if >> a user is brave enough to try it ;) > > :-) > > It Would Be Nice to have, say, M-x guix-compile-in-environment, which > would be like M-x compile but just run the thing in =E2=80=98guix environ= ment=E2=80=99. > Just thought I=E2=80=99d mention this in passing. ;-) Yes, I remember about emacs+environment wishes, but I don't promise anything :-( >> Also along with "execute in REPL" action I'm going to add 2 more default >> actions for each command: >> >> - "execute in shell" =E2=80=94 this will be a complete alternative to wr= iting a >> full command manually in a shell buffer. >> >> - "copy the command line" =E2=80=94 i.e., to put the specified command a= rguments >> into kill ring, so later a user could do with it whatever he wants. > > (he or she) > > Sounds like more exciting stuff ahead! If you mean those 2 actions, they were implemented a couple of days later. > Thanks for your creativity & hack power! Thank you very much! --=20 Alex