From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Clemmer Subject: Re: Guix and Emacs Integration for Polyglot Development Date: Sat, 27 Oct 2018 15:32:58 -0400 Message-ID: References: <87wos9rp5y.fsf@gnu.org> <87wos5cma6.fsf@gnu.org> <87tvn9s14w.fsf@gnu.org> <87k1o5b05d.fsf@gnu.org> <875zz9gm8w.fsf@gnu.org> <875zz7epb6.fsf@gmail.com> <87ftwsprke.fsf@gmail.com> <87bm7f4fjt.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]:46731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGUKZ-0001AU-KR for help-guix@gnu.org; Sat, 27 Oct 2018 15:33:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGUKV-0004wD-LO for help-guix@gnu.org; Sat, 27 Oct 2018 15:33:07 -0400 Received: from mail-yb1-xb30.google.com ([2607:f8b0:4864:20::b30]:43904) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gGUKV-0004vt-F6 for help-guix@gnu.org; Sat, 27 Oct 2018 15:33:03 -0400 Received: by mail-yb1-xb30.google.com with SMTP id g75-v6so1854402yba.10 for ; Sat, 27 Oct 2018 12:33:03 -0700 (PDT) In-reply-to: <87bm7f4fjt.fsf@gmail.com> 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: Alex Kost Cc: help-guix@gnu.org Alex Kost writes: > George Clemmer (2018-10-26 16:56 -0400) wrote: > >> I have another question. Is there a shortcut to >> guix-installed-system-packages in the popup that I am missing? > > No, there is a direct shortcut. Currently there are 2 "long" ways > to access system packages from "M-x guix": > > 1) setting current profile to the system one ("p" in "packages" > sub-popup) and openning installed packages (with "i" key), or > > 2) through *Guix Profiles* buffer (which can be accessed with "M-x guix > P a"): there you can move to the system profile and press "P". I also found ... 'M-x guix P s P' ... which I had missed and is all I want/need ;-) > I'm afraid, I am not going to add a shortcut for system packages inside > "packages" sub-popup, as it and "profiles" sub-popup are designed to > work with the current profile, so if you want to open packages or > generations from some profile, you need to make it the current one at > first. > > But maybe it would be good to add a new sub-popup for system commands, > where a key for system packages will be placed, WDYT? I agree with your approach. I think this is all REALLY GREAT STUFF. You can leave it just the way it is and I will be happy. FWIW, here are a few comments/ideas ... It would be handy if 'quit-window' in the final buffer reached via *guix-popup* took me take me back 'UP' the "tree" of sub-popups that lead there so I could chose another option. With regard to system/user profiles. First, to state what may not be obvious to a novice guix user ... - In addition to the "default user" profile, you may use multiple "user project" profiles. - In practice, a novice uses the packages in the union of the system and default "user" profile. A more advanced user may have 1 or more "project" profiles as well. - The system profile is fundamentally "a different kind of animal". There is only one and you need different guix "tools" to modify it. In the present design, presenting the system profile as "just another profile" in *Guix Profiles* leads to slapping the user's hand if/when they try to change the system profile, E.g., user-error: Packages cannot be installed or removed to/from profile =E2= =80=99/var/guix/profiles/system/profile=E2=80=99. Use =E2=80=99guix system reconfigure=E2=80=99 shell command to modify a= system profile. If, as you suggest, you create the system sub-popup, you might consider removing the system profile from *Guix Profiles* since the user can get to the system profile package list via system generations + 'P'. Of course, you may still choose to show the user the error message above, but it would no longer be an asymmetric behavior on one of a group of things presented as equals. It might be useful to allow the user to see system profile packages in the context a user/project profile. E.g., a key could toggle the system profile packages into and out of the *Guix Packages * list view. HTH - George