all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] emacs: Add completions for 'edit' and 'size' commands.
@ 2015-06-18 13:35 Alex Kost
  2015-06-19  7:49 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Kost @ 2015-06-18 13:35 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 95 bytes --]

Ludovic is quick on adding new commands :-)  Thank you very much!  These
commands are great!!


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-emacs-Add-completions-for-edit-and-size-commands.patch --]
[-- Type: text/x-patch, Size: 1412 bytes --]

From 1f1330c80e4057040721d5e32cbac0dfc9f1da57 Mon Sep 17 00:00:00 2001
From: Alex Kost <alezost@gmail.com>
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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-19  7:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-18 13:35 [PATCH] emacs: Add completions for 'edit' and 'size' commands Alex Kost
2015-06-19  7:49 ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.