aboutsummaryrefslogtreecommitdiff
path: root/emacs/guix-command.el
Commit message (Collapse)AuthorAge
* emacs: command: Disambiguate "w" key in build options.Alex Kost2016-02-01
| | | | | | | This is a followup to commit 47c0f92c37dc7d50d9d4598ce5b91c4cdfec6ed1. * emacs/guix-command.el (guix-command-improve-common-build-argument): Use "W" key for '--with-input' option (leave "w" for '--with-source').
* guix system: Rename 'dmd-graph' to 'shepherd-graph'.Alex Kost2016-01-29
| | | | | | | | | | | | | | | | * 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.
* emacs: Complete --file in 'guix build' popup.Alex Kost2016-01-13
| | | | | * emacs/guix-command.el (guix-command-improve-build-argument): Use 'guix-read-file-name' to complete --file option.
* emacs: Use "cl-list*" instead of "apply #'list".Alex Kost2016-01-02
| | | | | | * 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.
* emacs: Fix '--rounds' option in command popups.Alex Kost2015-12-09
| | | | | | * 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).
* emacs: Add 'guix-build-log-find-file'.Alex Kost2015-12-09
| | | | | * emacs/guix-build-log.el (guix-build-log-find-file): New procedure. * emacs/guix-command.el (guix-run-view-build-log): Use it.
* emacs: Complete --profile in 'guix package' popup.Alex Kost2015-12-06
| | | | | * emacs/guix-command.el (guix-command-improve-package-argument): Use 'guix-read-file-name' to complete --profile option.
* emacs: Adjust 'guix environment' popup.Alex Kost2015-11-12
| | | | | | | | | | | | | | | | * 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.
* emacs: Adjust 'guix container' popup.Alex Kost2015-11-12
| | | | | | * 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.
* emacs: Improve post processing of popup arguments.Alex Kost2015-11-12
| | | | | | | | | | | | | | * 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.
* emacs: Add completions for '--type' option of 'refresh' popup.Alex Kost2015-11-02
| | | | | | | | | | * 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'.
* emacs: Add "Packages" option for 'guix challenge' popup.Alex Kost2015-10-27
| | | | * emacs/guix-command.el (guix-command-rest-argument): Add "challenge".
* emacs: Add "View graph" actions to system graph commands.Alex Kost2015-10-16
| | | | | | * emacs/guix-command.el (guix-command-additional-execute-arguments, guix-command-special-executors): Add "View graph" actions for 'dmd-graph' and 'extension-graph' commands.
* emacs: Disambiguate "d" key in 'system' popup.Alex Kost2015-10-16
| | | | | * emacs/guix-command.el (guix-command-improve-system-argument): Use "D" key for 'disk-image' action (leave "d" for 'dmd-graph').
* emacs: Add "View map" action to 'size' popup.Alex Kost2015-09-23
| | | | | | * 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.
* emacs: Move guile related code to "guix-guile.el".Alex Kost2015-09-22
| | | | | | | | * 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.
* emacs: Replace 'guix-any' with 'cl-some'.Alex Kost2015-09-18
| | | | | | * emacs/guix-utils.el (guix-any): Remove. * emacs/guix-command.el (guix-command-improve-argument): Use 'cl-some' instead of 'guix-any'.
* emacs: Add "View build log" action to build popup.Alex Kost2015-09-15
| | | | | | | | * 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.
* emacs: Use "r" key for 'cran' action in 'import' popup.Alex Kost2015-09-02
| | | | | | * emacs/guix-command.el (guix-command-improve-import-argument): New variable and function. (guix-command-argument-improvers): Add it.
* emacs: Add "View graph" action to graph popup.Alex Kost2015-09-01
| | | | | | | * 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.
* emacs: Use prompt for packages instead popup for edit action.Alex Kost2015-08-30
| | | | | | | | | | | | * 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.
* emacs: Add popup interface for guix commands.Alex Kost2015-08-30
* 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.