summaryrefslogtreecommitdiff
path: root/emacs/guix-base.el
diff options
context:
space:
mode:
authorAlex Kost <alezost@gmail.com>2015-10-28 21:11:36 +0300
committerAlex Kost <alezost@gmail.com>2015-11-02 15:51:40 +0300
commit6407ce8ea1b67024e50273b7d6a1773a16a42322 (patch)
tree31b1547a930dff2b4536d4c82f160670b39b5c5a /emacs/guix-base.el
parent762b1971d8e21ffbc46d28b37c9bace64c2369bc (diff)
emacs: Add completions for '--type' option of 'refresh' popup.
* guix/scripts/refresh.scm: Export '%updaters'. * emacs/guix-main.scm (refresh-updater-names): New procedure. * emacs/guix-base.el (guix-refresh-updater-names): New function. * emacs/guix-read.el (guix-read-refresh-updater-names, guix-read-refresh-updater-names-string): New functions. * emacs/guix-command.el (guix-command-improve-refresh-argument): Use 'guix-read-refresh-updater-names-string'.
Diffstat (limited to 'emacs/guix-base.el')
-rw-r--r--emacs/guix-base.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/guix-base.el b/emacs/guix-base.el
index 2e99c545f0..14ea3d4458 100644
--- a/emacs/guix-base.el
+++ b/emacs/guix-base.el
@@ -186,6 +186,10 @@ For the meaning of location, see `guix-find-location'."
"Return a list of names of available graph node types."
(guix-eval-read (guix-make-guile-expression 'graph-type-names)))
+(guix-memoized-defun guix-refresh-updater-names ()
+ "Return a list of names of available refresh updater types."
+ (guix-eval-read (guix-make-guile-expression 'refresh-updater-names)))
+
(guix-memoized-defun guix-lint-checker-names ()
"Return a list of names of available lint checkers."
(guix-eval-read (guix-make-guile-expression 'lint-checker-names)))