From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: guix.el: Key bindings for a "package list" Date: Fri, 05 Sep 2014 16:37:38 +0400 Message-ID: <87y4ty5jl9.fsf@gmail.com> References: <87a96e7bu3.fsf@gmail.com> <87egvq1nj2.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]:57102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPslz-0001cQ-I3 for guix-devel@gnu.org; Fri, 05 Sep 2014 08:38:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPslq-0001LN-Cp for guix-devel@gnu.org; Fri, 05 Sep 2014 08:37:51 -0400 In-Reply-To: <87egvq1nj2.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 05 Sep 2014 10:26:09 +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-09-05 12:26 +0400) wrote: > Alex Kost skribis: > >> Hello, >> >> I would like to know people's opinions about default key bindings. >> >> Currently in a buffer with a list of packages we have: "u"/"U" to >> unmark/unmark all. But it leaves no room for marking for upgrade and I >> just bound it to "^" which is not very good. >> >> So what about combining "unmark"/"unmark all" into one key and use >> either: >> >> 1. "U" - unmark ("C-u U" - unmark all); >> "u" - mark for upgrading. >> >> 2. "u" - unmark ("C-u u" - unmark all); >> "U" - mark for upgrade. Should it also require (for consistency) to >> use upper-case "I"/"D" for marking for installing/deletion? > > I=E2=80=99m hesitant, but I would vote for #2. I don=E2=80=99t think I a= nd D are needed > though. I prefer this variant as well: "u" is a too common binding for unmarking in Emacs (it is used in dired, buffer-menu, ibuffer, package-menu, ...). So unmarking should probably stay on "u" (and unmark all with prefix). >> Also should there be a command to mark all obsolete packages for >> upgrading? If so, what key should it be bound to? (perhaps my favourite >> "^"). > > Actually this is what U does in package.el. But I=E2=80=99m fine with ^ = here. Taylan suggested "C-u U" for this one. And I think it would be perfect, but... Let's say a user has both "foo-1.0:out" and "foo-1.0:doc" installed and one day they become obsolete. He decides to upgrade only "out" for some reason. May there exist such a situation? If so, then I think "C-u U" should be used to specify a particular output for upgrading. Actually I implemented such specifying of outputs for installing and deletion ("i"/"d") but not for upgrading (I don't remember why). -- Alex