guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/04: emacs: Add missing shell completions.


From: Alex Kost
Subject: 01/04: emacs: Add missing shell completions.
Date: Wed, 13 Jan 2016 14:59:25 +0000

alezost pushed a commit to branch master
in repository guix.

commit 883fc5ed422cdfb32e63c963882755240c32b8f2
Author: Alex Kost <address@hidden>
Date:   Tue Jan 12 17:37:44 2016 +0300

    emacs: Add missing shell completions.
    
    * emacs/guix-pcomplete.el (guix-pcomplete-complete-option-arg): Complete
      file name for '--install-from-file' option of 'guix package' command,
      and for '--file' and '--with-source' options of 'guix build' command.
---
 emacs/guix-pcomplete.el |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/emacs/guix-pcomplete.el b/emacs/guix-pcomplete.el
index 85b267a..785e54e 100644
--- a/emacs/guix-pcomplete.el
+++ b/emacs/guix-pcomplete.el
@@ -262,7 +262,8 @@ INPUT is the current partially completed string."
         (complete (guix-pcomplete-all-packages)))
        ((option? "-p" "--profile")
         (complete* (pcomplete-dirs)))
-       ((option? "-m" "--manifest")
+       ((or (option? "-f" "--install-from-file")
+            (option? "-m" "--manifest"))
         (complete* (pcomplete-entries)))))
 
      ((and (command? "archive" "build" "size")
@@ -270,7 +271,9 @@ INPUT is the current partially completed string."
       (complete* guix-help-system-types))
 
      ((and (command? "build")
-           (option? "-r" "--root"))
+           (or (option? "-f" "--file")
+               (option? "-r" "--root")
+               (string= "--with-source" option)))
       (complete* (pcomplete-entries)))
 
      ((and (command? "graph")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]