emacs: Add 'guix-graph-type-names'.
authorAlex Kost <alezost@gmail.com>
Thu, 27 Aug 2015 19:47:26 +0000 (22:47 +0300)
committerAlex Kost <alezost@gmail.com>
Sun, 30 Aug 2015 15:26:02 +0000 (18:26 +0300)
* emacs/guix-main.scm: Use (guix scripts graph) module.
  (graph-type-names): New procedure.
* emacs/guix-base.el (guix-graph-type-names): New function.

emacs/guix-base.el
emacs/guix-main.scm

index daf15bf..1f4a00c 100644 (file)
@@ -183,6 +183,10 @@ If PATH is relative, it is considered to be relative to
 \f
 ;;; Receivable lists of packages, lint checkers, etc.
 
+(guix-memoized-defun guix-graph-type-names ()
+  "Return a list of names of available graph node types."
+  (guix-eval-read (guix-make-guile-expression 'graph-type-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)))
index 2c5b0ba..191aa8d 100644 (file)
@@ -57,6 +57,7 @@
  (guix licenses)
  (guix utils)
  (guix ui)
+ (guix scripts graph)
  (guix scripts lint)
  (guix scripts package)
  (guix scripts pull)
@@ -932,6 +933,10 @@ GENERATIONS is a list of generation numbers."
 \f
 ;;; Lists of packages, lint checkers, etc.
 
+(define (graph-type-names)
+  "Return a list of names of available graph node types."
+  (map node-type-name %node-types))
+
 (define (lint-checker-names)
   "Return a list of names of available lint checkers."
   (map (lambda (checker)