[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/24: emacs: Add 'guix-graph-type-names'.
From: |
Alex Kost |
Subject: |
12/24: emacs: Add 'guix-graph-type-names'. |
Date: |
Fri, 28 Aug 2015 20:06:34 +0000 |
alezost pushed a commit to branch wip-emacs-popup-ui
in repository guix.
commit 05f53e1c5af9c9361945685198f9c0a3062a0e48
Author: Alex Kost <address@hidden>
Date: Thu Aug 27 22:47:26 2015 +0300
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.
---
emacs/guix-base.el | 4 ++++
emacs/guix-main.scm | 5 +++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/emacs/guix-base.el b/emacs/guix-base.el
index daf15bf..1f4a00c 100644
--- a/emacs/guix-base.el
+++ b/emacs/guix-base.el
@@ -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)))
diff --git a/emacs/guix-main.scm b/emacs/guix-main.scm
index 2c5b0ba..191aa8d 100644
--- a/emacs/guix-main.scm
+++ b/emacs/guix-main.scm
@@ -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)
- 02/24: emacs: Add 'guix-prettify' to 'guix' custom group., (continued)
- 02/24: emacs: Add 'guix-prettify' to 'guix' custom group., Alex Kost, 2015/08/28
- 06/24: emacs: Add utils to copy guix command., Alex Kost, 2015/08/28
- 03/24: emacs: Add and use 'guix-while-search'., Alex Kost, 2015/08/28
- 04/24: emacs: Add and use 'guix-concat-strings'., Alex Kost, 2015/08/28
- 05/24: emacs: Add utils to make symbol and string for guix command., Alex Kost, 2015/08/28
- 07/24: emacs: Add 'guix-any'., Alex Kost, 2015/08/28
- 08/24: emacs: Add 'guix-memoized-defalias' macro., Alex Kost, 2015/08/28
- 09/24: guix lint: Export checkers and <lint-checker> accessors., Alex Kost, 2015/08/28
- 10/24: emacs: Add 'guix-lint-checker-names'., Alex Kost, 2015/08/28
- 11/24: guix graph: Export node types and <node-type> accessors., Alex Kost, 2015/08/28
- 12/24: emacs: Add 'guix-graph-type-names'.,
Alex Kost <=
- 13/24: emacs: Add 'guix-package-names'., Alex Kost, 2015/08/28
- 17/24: ui: Add 'run-guix'., Alex Kost, 2015/08/28
- 15/24: emacs: Add minibuffer readers., Alex Kost, 2015/08/28
- 18/24: emacs: Add code to run guix command in REPL., Alex Kost, 2015/08/28
- 14/24: emacs: Add help variables., Alex Kost, 2015/08/28
- 20/24: doc: Reorganize "Emacs Interface" node., Alex Kost, 2015/08/28
- 23/24: emacs: Use prompt for packages instead popup for edit action., Alex Kost, 2015/08/28
- 19/24: emacs: Add code to run guix command in shell., Alex Kost, 2015/08/28
- 21/24: emacs: Add "guix-popup.el"., Alex Kost, 2015/08/28
- 24/24: emacs: Use popup interface instead 'guix-pull' command., Alex Kost, 2015/08/28