all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: George Clemmer <myglc2@gmail.com>
To: Alex Kost <alezost@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Guix and Emacs Integration for Polyglot Development
Date: Sat, 27 Oct 2018 15:32:58 -0400	[thread overview]
Message-ID: <cuc8t2jmbh1.fsf@gmail.com> (raw)
In-Reply-To: <87bm7f4fjt.fsf@gmail.com>


Alex Kost <alezost@gmail.com> 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 ’/var/guix/profiles/system/profile’.
    Use ’guix system reconfigure’ 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

  reply	other threads:[~2018-10-27 19:33 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-29 18:41 Guix and Emacs Integration for Polyglot Development Jan Nieuwenhuizen
2018-09-01 14:41 ` Ludovic Courtès
2018-09-01 15:11   ` Jan Nieuwenhuizen
2018-09-01 17:25     ` Ludovic Courtès
2018-09-13 20:45       ` Jan Nieuwenhuizen
2018-09-14  9:56         ` Ludovic Courtès
2018-09-14 11:53           ` Jan Nieuwenhuizen
2018-09-14 21:34         ` Alex Kost
2018-09-15  5:21           ` Jan Nieuwenhuizen
2018-09-15 19:40             ` Alex Kost
2018-10-26  4:59           ` George Clemmer
2018-10-26 17:04             ` Alex Kost
2018-10-26 18:01               ` George Clemmer
2018-10-26 20:56                 ` George Clemmer
2018-10-27 14:42                   ` Alex Kost
2018-10-27 19:32                     ` George Clemmer [this message]
2018-10-28 14:39                       ` Alex Kost
2018-10-28 21:19                         ` George Clemmer
2018-10-29 16:37                           ` Alex Kost
2018-10-26  1:22         ` Maxim Cournoyer
  -- strict thread matches above, loose matches on Subject: below --
2018-07-27 18:53 Kenny Ballou
2018-08-02  8:08 ` Chris Marusich
2018-08-05 19:16   ` Kenny Ballou
2018-08-20 12:32     ` Maxim Cournoyer
2018-08-24 21:55       ` Ludovic Courtès
2018-08-25 19:47         ` Alex Kost
2018-08-25 21:59           ` Ludovic Courtès
2018-08-31 12:49       ` Maxim Cournoyer
2018-09-10 15:25         ` Kenny Ballou
2018-09-11  1:10 ` George Clemmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cuc8t2jmbh1.fsf@gmail.com \
    --to=myglc2@gmail.com \
    --cc=alezost@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.