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:28 +0400 Message-ID: <87zjee5jlj.fsf@gmail.com> References: <87a96e7bu3.fsf@gmail.com> <87wq9ifn49.fsf@taylan.uni.cx> 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]:57069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPslo-0001ai-MK for guix-devel@gnu.org; Fri, 05 Sep 2014 08:37:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPslf-0001FB-LU for guix-devel@gnu.org; Fri, 05 Sep 2014 08:37:40 -0400 Received: from mail-lb0-x22e.google.com ([2a00:1450:4010:c04::22e]:36406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPslf-0001F1-CQ for guix-devel@gnu.org; Fri, 05 Sep 2014 08:37:31 -0400 Received: by mail-lb0-f174.google.com with SMTP id n15so3787164lbi.5 for ; Fri, 05 Sep 2014 05:37:30 -0700 (PDT) In-Reply-To: <87wq9ifn49.fsf@taylan.uni.cx> (Taylan Ulrich Bayirli's message of "Fri, 05 Sep 2014 11:11:18 +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: Taylan Ulrich Bayirli/Kammer Cc: guix-devel@gnu.org Taylan Ulrich Bayirli/Kammer (2014-09-05 13:11 +0400) wrote: > Alex Kost writes: > >> I would like to know people's opinions about default key bindings. > > Might be nice to be consistent with the package-menu-mode (M-x > list-packages) interface: > > U package-menu-mark-upgrades > d package-menu-mark-delete > i package-menu-mark-install > u package-menu-mark-unmark > x package-menu-execute > ~ package-menu-mark-obsolete-for-deletion > DEL package-menu-backup-unmark > > It's noteworthy that there is no command to mark a single package for > upgrading. (And no, simply installing the new version doesn't seem to > delete the old.) Perhaps C-u U could mark a single package for upgrade. I tried to be consistent with that but as you noted there is no way to mark a single package for upgrading there. Also there is no key binding for unmarking everything and no such thing as "general mark". In =E2=80=9Cguix.el=E2=80=9D you can mark several packages with "m" and then p= ress "RET" to describe those. > By the way, I remember finding that interface to be frustrating, but I > don't remember the exact reasons right now. It might in fact be related > to there not being a command to mark a single package for upgrade. > Perhaps we could make U mark a single package and C-u U all, as a single > point of divergence from package menu mode. I like this variant, but I have a question here. I'll ask it in a reply to Ludo's message. > One more thought: if package-menu-mode is sufficiently generalized, > guix.el could just use that. Originally =E2=80=9Cpackage.el=E2=80=9D wasn't generalized. But when it be= came a part of Emacs, =E2=80=9Ctabulated-list.el=E2=80=9D was extracted from it and now tabulated-list is required by =E2=80=9Cpackage.el=E2=80=9D. =E2=80=9Cguix.= el=E2=80=9D uses tabulated-list as well. There is no way to use package-menu directly as it is too specific for Emacs packages tasks. -- Alex