aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorAlex Kost <alezost@gmail.com>2015-06-22 10:57:04 +0300
committerAlex Kost <alezost@gmail.com>2015-06-22 11:01:21 +0300
commit0805f336adb0a23d93313adffa0a8bfdba6b621d (patch)
treeca6e8244ca1d0e3cf2156f72468f16be58b1a91f /emacs
parenta8f996c605c181e5adae0de24b235d463825beab (diff)
downloadpatches-0805f336adb0a23d93313adffa0a8bfdba6b621d.tar
patches-0805f336adb0a23d93313adffa0a8bfdba6b621d.tar.gz
emacs: Complete 'guix size --map-file' properly.
* emacs/guix-pcomplete.el (guix-pcomplete-complete-option-arg): Complete file name for '-m/--map-file' option of 'guix size' command.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/guix-pcomplete.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/emacs/guix-pcomplete.el b/emacs/guix-pcomplete.el
index dd42556163..cad19662dd 100644
--- a/emacs/guix-pcomplete.el
+++ b/emacs/guix-pcomplete.el
@@ -330,7 +330,11 @@ INPUT is the current partially completed string."
((and (command? "refresh")
(option? "-s" "--select"))
- (complete* guix-pcomplete-refresh-subsets)))))
+ (complete* guix-pcomplete-refresh-subsets))
+
+ ((and (command? "size")
+ (option? "-m" "--map-file"))
+ (complete* (pcomplete-entries))))))
(defun guix-pcomplete-complete-options (command)
"Complete options (with their arguments) for guix COMMAND."