summaryrefslogtreecommitdiff
path: root/emacs/guix-pcomplete.el
diff options
context:
space:
mode:
authorAlex Kost <alezost@gmail.com>2016-01-12 17:37:44 +0300
committerAlex Kost <alezost@gmail.com>2016-01-13 17:55:47 +0300
commit883fc5ed422cdfb32e63c963882755240c32b8f2 (patch)
tree4aa843ed8a26b9467be0b8b70be28f8d031bc41d /emacs/guix-pcomplete.el
parent75418ae0fd1e384f41616d4c433f9f06a5956e46 (diff)
downloadgnu-guix-883fc5ed422cdfb32e63c963882755240c32b8f2.tar
gnu-guix-883fc5ed422cdfb32e63c963882755240c32b8f2.tar.gz
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.
Diffstat (limited to 'emacs/guix-pcomplete.el')
-rw-r--r--emacs/guix-pcomplete.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/emacs/guix-pcomplete.el b/emacs/guix-pcomplete.el
index 85b267a78d..785e54ef6d 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")