From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: [PATCH] emacs: Improve interface for working with multiple profiles. Date: Sat, 18 Oct 2014 01:18:02 +0400 Message-ID: <87r3y6s8dx.fsf@gmail.com> References: <87vbnisfh0.fsf@gmail.com> <87a94u336v.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]:42091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfEub-0000EZ-Cq for guix-devel@gnu.org; Fri, 17 Oct 2014 17:18:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XfEuR-0004cD-2L for guix-devel@gnu.org; Fri, 17 Oct 2014 17:18:13 -0400 In-Reply-To: <87a94u336v.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 17 Oct 2014 21:29:28 +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@gnu.org Ludovic Court=C3=A8s (2014-10-17 23:29 +0400) wrote: > Alex Kost skribis: [...] > What about renaming =E2=80=98guix-set-current-profile=E2=80=99 to > =E2=80=98guix-set-default-profile=E2=80=99? Because now, what it does is= just to define > the profile that is used when C-u isn=E2=80=99t used, right? Right, but I think it shouldn't be renamed as "default profile" and "current profile" have different meanings there: - default profile is "/var/guix/profiles/per-user/user/guix-profile" (or whatever) and it is =E2=80=9Cfixed=E2=80=9D; - current profile is used by commands (as you pointed) and it may be changed. For example, a user decides to look at generations and installed packages of some profile. So he may "M-x guix-set-current-profile ...", then "M-x guix-generations" and "M-x guix-installed-packages". After that he could switch to another profile or to a default profile using "C-u M-x guix-set-current-profile". (there are even 2 variables: guix-default-profile and guix-current-profile) >> Also as prefix argument was previously used in "M-x guix-generations" to >> select last N generations, I added a new command "M-x >> guix-last-generations". > > OK. > >> @item M-x guix-generations >> -List generations for the current profile. With numeric prefix, show so >> -many last generations. >> +List all generations for the current profile. > ^ ^^^^^^^ > =E2=80=9Call the generations=E2=80=9D > > For all these commands, it may be better to omit =E2=80=9Ccurrent=E2=80= =9D, because it=E2=80=99s > not necessary the current/default profile that is used. Yes, you are right. >> +@item M-x guix-last-generations >> +List last generations for the current profile. You will be prompted for >> +the number of generations. > > Maybe: =E2=80=9CList the @var{N} last generations of the profile.=E2=80=9D > Also, double space after period. Hawk eye :-) >> -By default commands for displaying packages display each output on a >> +All these commands use current profile, which can be changed with >> +@kbd{M-x@tie{}guix-set-current-profile}. Also if you call any of these >> +commands with prefix argument (@kbd{C-u}), you will be prompted for a >> +profile just for that command. > > s/current/default/ ? I believe =E2=80=9Ccurrent=E2=80=9D is better. > I wonder if it might be better to move this paragraph above the first > command, so it=E2=80=99s clear which profile we=E2=80=99re talking about. > >> -For example if you want to display all types of results in a single >> +By default, the name of a profile is also displayed in a ``list'' or >> +''info'' buffer name. To change this behavior, use > ^^ > backquotes Ouch, hawks should envy :-) Thanks for the comments.