From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 6/6] emacs: Add interface for system generations. Date: Tue, 12 Jan 2016 21:35:16 +0100 Message-ID: <87si22a64b.fsf@gnu.org> References: <1452419630-4399-1-git-send-email-alezost@gmail.com> <1452419630-4399-7-git-send-email-alezost@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]:40367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJ5f2-0001dD-1v for guix-devel@gnu.org; Tue, 12 Jan 2016 15:35:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJ5ex-0003J5-1e for guix-devel@gnu.org; Tue, 12 Jan 2016 15:35:23 -0500 In-Reply-To: <1452419630-4399-7-git-send-email-alezost@gmail.com> (Alex Kost's message of "Sun, 10 Jan 2016 12:53:50 +0300") 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: > * emacs/guix-main.scm (system-generation-boot-parameters) > (system-generation-param-alist, system-generation-sexps): New procedures. > (entries): Add 'system-generation' entry type. > * emacs/guix-messages.el (guix-result-message): Use the same messages > for 'generation' and 'system-generation' entry types. > * emacs/guix-ui-system-generation.el: New file. > * emacs.am (ELFILES): Add it. > * doc/emacs.texi (Emacs Commands): Document new commands. > * NEWS: Mention new interface. [...] > +Analogously on GuixSD you can also display system generations: > + > +@table @kbd > +@item M-x guix-system-generations > +@item M-x guix-last-system-generations > +@item M-x guix-system-generations-by-time > +@end table As simple as this. :-) And I guess it=E2=80=99s also possible to select generations, delete them, = and switch to a specific one, as with M-x guix-generations? Though maybe it would have to use =E2=80=9Csudo:localhost:/run/current-system/profile=E2=80=9D (via Tramp) to= be able to modify things. Maybe it could somehow offer to gain root privileges when performing an action? Ludo=E2=80=99.