From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: [PATCH] emacs: Add completions for 'edit' and 'size' commands. Date: Thu, 18 Jun 2015 16:35:45 +0300 Message-ID: <87h9q5yw9a.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5Zz4-0005Li-6S for guix-devel@gnu.org; Thu, 18 Jun 2015 09:35:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5Zyz-0006Kz-2k for guix-devel@gnu.org; Thu, 18 Jun 2015 09:35:58 -0400 Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]:34620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5Zyx-0006Iz-OE for guix-devel@gnu.org; Thu, 18 Jun 2015 09:35:52 -0400 Received: by labbc20 with SMTP id bc20so54534988lab.1 for ; Thu, 18 Jun 2015 06:35:47 -0700 (PDT) Received: from leviafan ([217.107.192.184]) by mx.google.com with ESMTPSA id w7sm1784131lag.42.2015.06.18.06.35.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jun 2015 06:35:46 -0700 (PDT) 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: guix-devel@gnu.org --=-=-= Content-Type: text/plain Ludovic is quick on adding new commands :-) Thank you very much! These commands are great!! --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-emacs-Add-completions-for-edit-and-size-commands.patch >From 1f1330c80e4057040721d5e32cbac0dfc9f1da57 Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Thu, 18 Jun 2015 16:21:13 +0300 Subject: [PATCH] emacs: Add completions for 'edit' and 'size' commands. * emacs/guix-pcomplete.el (guix-pcomplete-complete-command-arg): Complete package names for 'guix edit' and 'guix size' commands. (guix-pcomplete-complete-option-arg): Complete '-s/--system' option for 'guix size'. --- emacs/guix-pcomplete.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emacs/guix-pcomplete.el b/emacs/guix-pcomplete.el index fa71dd5..dd42556 100644 --- a/emacs/guix-pcomplete.el +++ b/emacs/guix-pcomplete.el @@ -254,7 +254,8 @@ group - the argument.") "Complete argument for guix COMMAND." (cond ((member command - '("archive" "build" "environment" "lint" "refresh")) + '("archive" "build" "edit" "environment" "lint" "refresh" + "size")) (while t (pcomplete-here (guix-pcomplete-all-packages)))) (t (pcomplete-here* (pcomplete-entries))))) @@ -302,7 +303,7 @@ INPUT is the current partially completed string." ((option? "-m" "--manifest") (complete* (pcomplete-entries))))) - ((and (command? "archive" "build") + ((and (command? "archive" "build" "size") (option? "-s" "--system")) (complete* guix-pcomplete-systems)) -- 2.2.1 --=-=-=--