Alex Kost
70fd33ea75
emacs: command: Disambiguate "w" key in build options.
...
This is a followup to commit 47c0f92c37
.
* emacs/guix-command.el (guix-command-improve-common-build-argument):
Use "W" key for '--with-input' option (leave "w" for '--with-source').
2016-02-01 21:23:38 +03:00
Alex Kost
710fa231f0
guix system: Rename 'dmd-graph' to 'shepherd-graph'.
...
* doc/images/dmd-graph.dot: Rename to...
* doc/images/shepherd-graph.dot: ... this.
* doc.am (DOT_FILES): Adjust accordingly.
* guix/scripts/system.scm (dmd-service-node-label)
(dmd-service-node-type, export-dmd-graph): Rename to...
(shepherd-service-node-label, shepherd-service-node-type)
(export-shepherd-graph): ... this.
(show-help, process-action, process-command): Rename 'dmd-graph' to
'shepherd-graph'.
* emacs/guix-command.el (guix-command-additional-execute-arguments)
(guix-command-special-executors): Likewise.
* doc/guix.texi: Likewise.
* doc/emacs.texi (Emacs Popup Interface): Likewise.
2016-01-29 20:21:54 +03:00
Alex Kost
08207339aa
emacs: Complete --file in 'guix build' popup.
...
* emacs/guix-command.el (guix-command-improve-build-argument): Use
'guix-read-file-name' to complete --file option.
2016-01-13 17:55:47 +03:00
Alex Kost
778437ed9f
emacs: Use "cl-list*" instead of "apply #'list".
...
* emacs/guix-command.el (guix-run-view-build-log): Use cl-list*.
(guix-run-view-size-map): Likewise.
* emacs/guix-external.el (guix-dot-arguments): Likewise.
2016-01-02 17:25:35 +03:00
Alex Kost
1ae15c3646
emacs: Fix '--rounds' option in command popups.
...
* emacs/guix-command.el (guix-command-improve-common-build-argument):
Use "R" key for '--rounds' option to avoid conflicts with "r" key in
'build' popup (--root) and 'package' popup (--remove).
2015-12-09 19:55:04 +03:00
Alex Kost
dcb00c0ad5
emacs: Add 'guix-build-log-find-file'.
...
* emacs/guix-build-log.el (guix-build-log-find-file): New procedure.
* emacs/guix-command.el (guix-run-view-build-log): Use it.
2015-12-09 19:54:19 +03:00
Alex Kost
9ff175655c
emacs: Complete --profile in 'guix package' popup.
...
* emacs/guix-command.el (guix-command-improve-package-argument): Use
'guix-read-file-name' to complete --profile option.
2015-12-06 12:46:10 +03:00
Alex Kost
8b341eb05d
emacs: Adjust 'guix environment' popup.
...
* emacs/guix-command.el (guix-command-improve-environment-argument): Use
"E" for '--expose' and "S" for '--share' to distinguish them from
'--expression' and '--system' accordingly. Make '--ad-hoc' an option
taking packages instead of a simple switch.
(guix-command-rest-argument): Complete shell command instead of
packages for '--' argument.
(guix-command-additional-arguments): Add fake 'packages' argument.
New variable.
(guix-command-additional-arguments): Use it.
(guix-command-post-process-environment-packages,
guix-command-post-process-environment-ad-hoc): New functions.
(guix-command-post-processors): Add "environment" command with the new
argument processors.
2015-11-12 21:22:35 +03:00
Alex Kost
cfa548b4ea
emacs: Adjust 'guix container' popup.
...
* emacs/guix-command.el (guix-command-improve-action-argument): Use "C"
key for 'container' action to distinguish it from 'challenge'.
(guix-command-rest-argument): Add positional arguments.
2015-11-12 21:22:35 +03:00
Alex Kost
959c78f69a
emacs: Improve post processing of popup arguments.
...
* emacs/guix-command.el (guix-command-switches,
guix-command-rest-arg-regexp): New variables.
(guix-command-post-processors,
guix-command-post-process-matching-args,
guix-command-post-process-rest-single,
guix-command-post-process-rest-multiple,
guix-command-post-process-rest-multiple-leave,
guix-command-post-process-package-args): New functions.
(guix-command-post-process-rest-multiple): Take 2 arguments.
(guix-command-define-popup-action): Adjust accordingly.
* emacs/guix-utils.el (guix-modify): New function.
2015-11-12 21:22:35 +03:00
Alex Kost
6407ce8ea1
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'.
2015-11-02 15:51:40 +03:00
Alex Kost
e1d3318634
emacs: Add "Packages" option for 'guix challenge' popup.
...
* emacs/guix-command.el (guix-command-rest-argument): Add "challenge".
2015-10-27 21:54:57 +03:00
Alex Kost
727495757f
emacs: Add "View graph" actions to system graph commands.
...
* emacs/guix-command.el (guix-command-additional-execute-arguments,
guix-command-special-executors): Add "View graph" actions for
'dmd-graph' and 'extension-graph' commands.
2015-10-16 17:24:13 +03:00
Alex Kost
e0c5309a83
emacs: Disambiguate "d" key in 'system' popup.
...
* emacs/guix-command.el (guix-command-improve-system-argument): Use "D"
key for 'disk-image' action (leave "d" for 'dmd-graph').
2015-10-16 17:14:57 +03:00
Alex Kost
6f05a24df3
emacs: Add "View map" action to 'size' popup.
...
* emacs/guix-command.el (guix-run-view-size-map): New function.
(guix-command-additional-execute-arguments,
guix-command-special-executors): Add entries for "View map" action.
2015-09-23 13:36:22 +03:00
Alex Kost
c74cd6cc12
emacs: Move guile related code to "guix-guile.el".
...
* emacs/guix-backend.el (guix-make-guile-expression): Move to...
* emacs/guix-guile.el: ... here. New file.
* emacs/guix-base.el: Use it.
* emacs/guix-command.el: Use it.
* emacs.am (ELFILES): Add it.
2015-09-22 22:05:09 +03:00
Alex Kost
b2cb869cf9
emacs: Replace 'guix-any' with 'cl-some'.
...
* emacs/guix-utils.el (guix-any): Remove.
* emacs/guix-command.el (guix-command-improve-argument): Use 'cl-some'
instead of 'guix-any'.
2015-09-18 21:41:46 +03:00
Alex Kost
83d95c7b36
emacs: Add "View build log" action to build popup.
...
* emacs/guix-command.el (guix-run-view-build-log): New function.
(guix-command-additional-execute-arguments,
guix-command-special-executors): Add entries for "View build log"
action.
* emacs/guix-utils.el (guix-find-file-or-url): New function.
2015-09-15 15:19:31 +03:00
Alex Kost
d1f80aa401
emacs: Use "r" key for 'cran' action in 'import' popup.
...
* emacs/guix-command.el (guix-command-improve-import-argument): New
variable and function.
(guix-command-argument-improvers): Add it.
2015-09-02 17:00:06 +03:00
Alex Kost
761d6fd9c1
emacs: Add "View graph" action to graph popup.
...
* emacs/guix-command.el: Require 'guix-external'.
(guix-run-view-graph): New function.
(guix-command-additional-execute-arguments,
guix-command-special-executors): Add entries for "View graph" action.
2015-09-01 13:03:51 +03:00
Alex Kost
eb097f36b1
emacs: Use prompt for packages instead popup for edit action.
...
* emacs/guix-base.el (guix-package-location): New function.
(guix-edit-package): Rename and move to ...
* emacs/guix.el (guix-edit): ...here. Make it interactive.
* emacs/guix-command.el (guix-edit-action): New function (alias to
'guix-edit') to override the popup for edit command in "M-x guix".
* emacs/guix-list.el (guix-list-edit-package): Adjust for 'guix-edit'
renaming.
* emacs/guix-main.scm (package-location-string): Allow to accept package
id or package name as argument.
2015-08-30 18:26:03 +03:00
Alex Kost
9b0afb0d28
emacs: Add popup interface for guix commands.
...
* emacs/guix-command.el: New file.
* emacs.am (ELFILES): Add it.
* doc/emacs.texi (Emacs Initial Setup): Mention 'magit-popup' library.
(Emacs Popup Interface): New node.
(Emacs Interface): Add it.
* doc/guix.texi (Top): Likewise.
2015-08-30 18:26:03 +03:00