~ruther/guix-local

43b40c4b152a5d7113e3ee591f9f91a342c8fbac — Alex Kost 10 years ago c1a8c5a
emacs: Add 'guix-graph-type-names'.

* emacs/guix-main.scm: Use (guix scripts graph) module.
  (graph-type-names): New procedure.
* emacs/guix-base.el (guix-graph-type-names): New function.
2 files changed, 9 insertions(+), 0 deletions(-)

M emacs/guix-base.el
M emacs/guix-main.scm
M emacs/guix-base.el => emacs/guix-base.el +4 -0
@@ 183,6 183,10 @@ If PATH is relative, it is considered to be relative to

;;; 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)))

M emacs/guix-main.scm => emacs/guix-main.scm +5 -0
@@ 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."

;;; 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)