aboutsummaryrefslogtreecommitdiff
path: root/emacs
Commit message (Collapse)AuthorAge
* emacs: Add 'guix-devel-lint-package'Alex Kost2015-10-09
| | | | | | | | | | Suggested by Ludovic Courtès <ludo@gnu.org>. * emacs/guix-devel.el (guix-devel-setup-repl): Add a workaround for 'guix-warning-port'. (guix-devel-lint-package): New command. (guix-devel-keys-map): Add key binding for it. * doc/emacs.texi (Emacs Development): Document it.
* emacs: Add 'guix-devel-with-definition'.Alex Kost2015-10-09
| | | | | | * emacs/guix-devel.el (guix-devel-with-definition): New macro. (guix-devel-build-package-definition): Use it. (guix-devel-emacs-font-lock-keywords): New variable.
* emacs: Fix 'guix-devel-setup-repl'.Alex Kost2015-10-09
| | | | | | | | | | | Setting up guix ports needs to be done in Geiser REPL synchronously, otherwise this operation may not be finished before the further evaluating of guile code. * emacs/guix-guile.el (guix-guile-prompt?): New function. * emacs/guix-geiser.el (guix-geiser-eval-in-repl-synchronously): New function. * emacs/guix-devel.el (guix-devel-setup-repl): Use it.
* emacs: Fix 'guix-build-log-phase-toggle-all'.Alex Kost2015-10-09
| | | | | | | | * emacs/guix-build-log.el (guix-build-log-phase-toggle-all): Handle the case when there are no characters before the first phase: 'guix-build-log-next-phase' moves to the second phase in such a case, and the toggling is not done properly, so use 're-search-forward' instead.
* emacs: devel: Fix 'modify-phases' highlighting.Alex Kost2015-10-09
| | | | | * emacs/guix-devel.el (guix-devel-modify-phases-font-lock-pre): Handle the case when 'modify-phases' is commented.
* emacs: devel: Highlight gexp symbols.Alex Kost2015-10-09
| | | | | | | Suggested by Ludovic Courtès <ludo@gnu.org>. * emacs/guix-devel.el (guix-devel-gexp-symbol): New face. (guix-devel-font-lock-keywords): Adjust to handle gexp symbols.
* emacs: devel: Highlight 'modify-phases' keywords.Alex Kost2015-09-26
| | | | | | | | | | | * emacs/guix-guile.el (guix-guile-keyword-regexp): New function. * emacs/guix-devel.el (guix-devel-faces): New custom group. (guix-devel-modify-phases-keyword): New face. (guix-devel-modify-phases-keyword-regexp, guix-devel-font-lock-keywords): New variables. (guix-devel-modify-phases-font-lock-matcher, guix-devel-modify-phases-font-lock-pre): New functions. (guix-devel-mode): Adjust to add/remove font-lock-keywords.
* emacs: build-log: Improve regexp for the phase end.Alex Kost2015-09-25
| | | | | * emacs/guix-build-log.el (guix-build-log-phase-end-regexp): Handle fractional number of seconds (like "0.8").
* emacs: Add 'guix-devel-build-package-definition'.Alex Kost2015-09-23
| | | | | | | | | | | | Suggested by Ludovic Courtès <ludo@gnu.org>. * emacs/guix-guile.el (guix-guile-definition-regexp): New variable. (guix-guile-current-definition, guix-guile-boolean): New functions. * emacs/guix-devel.el: Require 'guix-base'. (guix-devel-repl-processes): New variable. (guix-devel-setup-repl, guix-devel-setup-repl-maybe): New functions. (guix-devel-build-package-definition): New command. * doc/emacs.texi (Emacs Development): Document it.
* emacs: Add development utils.Alex Kost2015-09-23
| | | | | | | | | | | | * emacs/guix-guile.el (guix-guile-current-module): New function. * emacs/guix-devel.el: New file. * emacs.am (ELFILES): Add it. * doc/emacs.texi (Emacs Development): New node. (Emacs Interface): Add it. * doc/contributing.texi (The Perfect Setup): Mention it. * doc/guix.texi (Top): Add it. * emacs/guix-init.el: Add 'guix-devel-activate-mode-maybe' to 'scheme-mode-hook'.
* 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: Add code to call guile procedures.Alex Kost2015-09-22
| | | | | | * emacs/guix-guile.el (guix-guile-make-call-expression): New function. * emacs/guix-geiser.el: Require 'guix-guile'. (guix-geiser-call, guix-geiser-call-in-repl): New functions.
* emacs: Move code for evaluating to "guix-geiser.el".Alex Kost2015-09-22
| | | | | | | | | | * emacs/guix-backend.el: Adjust commentary. Move "eval" code to ... (guix-eval, guix-eval-read, guix-eval-in-repl): Adjust to use new functions. * emacs/guix-geiser.el: ...here. New file. (guix-geiser-eval, guix-geiser-eval-read, guix-geiser-eval-in-repl, guix-repl-send): New functions. * emacs.am (ELFILES): Add "guix-geiser.el".
* 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: Improve 'guix-prettify-regexp'.Alex Kost2015-09-22
| | | | | * emacs/guix-prettify.el (guix-prettify-regexp): Modify to handle "nar" and "log".
* 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 commands to show/hide build log phases.Alex Kost2015-09-18
| | | | | | | | | | | | | Suggested by Ludovic Courtès <ludo@gnu.org>. * emacs/guix-build-log.el (guix-build-log-phase-end-regexp): New variable. (guix-build-log-phase-start, guix-build-log-phase-end, guix-build-log-phase-hide, guix-build-log-phase-show, guix-build-log-phase-hidden-p, guix-build-log-phase-toggle-function, guix-build-log-phase-toggle, guix-build-log-phase-toggle-all): New functions. (guix-build-log-mode-map): Add 'TAB'/'S-TAB' key bindings. * doc/emacs.texi (Emacs Build Log): Document them.
* 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: Add modes for viewing build logs.Alex Kost2015-09-15
| | | | | | | | * emacs/guix-build-log.el: New file. * emacs.am (ELFILES): Add it. * doc/emacs.texi (Emacs Build Log): Document it. New node. (Emacs Interface): Add it. * doc/guix.texi (Top): Likewise.
* emacs: Display guix command errors in the minibuffer.Alex Kost2015-09-15
| | | | | | | * emacs/guix-main.scm (output+error): New procedure. (guix-command-output): Use it. * emacs/guix-base.el (guix-command-output): Display error output in the minibuffer.
* emacs: Add customization groups for faces.Alex Kost2015-09-15
| | | | | | | | | | * emacs/guix.el (guix-faces): New custom group. * emacs/guix-base.el (guix-operation-option-key): Use it. (guix-define-buffer-type): Generate faces group. * emacs/guix-info.el: Adjust faces to use new groups. (guix-info-faces): New custom group. * emacs/guix-list.el: Likewise (guix-list-faces): New custom group.
* ui: Add package-description-string.Mathieu Lirzin2015-09-08
| | | | | | | | | | | | | Provide support for Texinfo's markup in package description. * guix/ui.scm (%text-width): New parameter. (texi->plain-text): New variable. (package->recutils): Use them. (package-description-string): New variable. * emacs/guix-main.scm (%package-param-alist): Use it. * gnu/packages/perl.scm (perl-devel-globaldestruction) (perl-devel-lexalias, perl-exporter-lite): Adapt to Texinfo's markup. * gnu/packages/python.scm (python2-empy): Likewise.
* emacs: Add support for "triplet" package inputs.Alex Kost2015-09-04
| | | | | | | | Fixes <http://bugs.gnu.org/21399>. * emacs/guix-main.scm (full-name->name+version): Adjust to handle "name-version:output" string. (package-inputs-names): Support ("name" package "output") inputs.
* 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: Allow users to choose a 'find-file' function.Alex Kost2015-09-01
| | | | | * emacs/guix-utils.el (guix-find-file-function): New variable. (guix-find-file): Use it.
* emacs: Add code to run 'dot' program.Alex Kost2015-09-01
| | | | | * emacs/guix-external.el: New file. * emacs.am (ELFILES): Add it.
* emacs: Add code to pipe guix output to external program.Alex Kost2015-09-01
| | | | | * emacs/guix-main.scm: Use (ice-9 popen) module. (pipe-guix-output): New procedure.
* emacs: Use only one guix-load-path variable.Mathieu Lirzin2015-08-30
| | | | | emacs/guix-init.el (guix-load-path): Move to ... emacs/guix-backend.el (guix-load-path): ... Here. Redefine it.
* emacs: Fix guix-guile-program default value.Mathieu Lirzin2015-08-30
| | | | | | | | | Fixes <http://bugs.gnu.org/21127>. * emacs/guix-backend.el: Use guix-config. (guix-guile-program): Move to ... * emacs/guix-config.el.in (guix-guile-program): ... here. Use Guile program file name from compile-time instead of depending on PATH.
* build: Produce 'guix-config' instead of using compile-time tricks.Mathieu Lirzin2015-08-30
| | | | | | | | | | * emacs/guix-{init,profiles}.el.in: Rename to ... * emacs/guix-{init,profiles}.el: ... these. New files. Use 'guix-config'. * emacs/guix-config.el.in: New file. * emacs.am (nodist_lisp_DATA): Add it. Move them to ... (ELFILES): ... here. * .gitignore, configure.ac: Adjust accordingly.
* 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.
* emacs: Add "guix-popup.el".Alex Kost2015-08-30
| | | | | * emacs/guix-popup.el: New file. * emacs.am (ELFILES): Add it.
* emacs: Add code to run guix command in shell.Alex Kost2015-08-30
| | | | | | * emacs/guix-base.el (guix-run-in-shell, guix-run-in-eshell, guix-run-command-in-shell): New functions. (guix-run-in-shell-function, guix-shell-buffer-name): New variables.
* emacs: Add code to run guix command in REPL.Alex Kost2015-08-30
| | | | | | | * emacs/guix-base.el (guix-run-command-in-repl, guix-command-output, guix-help-string): New functions. * emacs/guix-main.scm (guix-command, guix-command-output, help-string): New procedures.
* emacs: Add and use alist accessors.Alex Kost2015-08-30
| | | | | | | | | | | * emacs/guix-utils.el (guix-define-alist-accessor): New macro. (guix-assq-value, guix-assoc-value): New functions. (guix-get-key-val): Remove. * emacs/guix-base.el: Replace 'guix-get-key-val' with 'guix-assq-value' everywhere. * emacs/guix-info.el: Likewise. * emacs/guix-list.el: Likewise. * emacs/guix-messages.el: Likewise.
* emacs: Add minibuffer readers.Alex Kost2015-08-30
| | | | | * emacs/guix-read.el: New file. * emacs.am (ELFILES): Add it.
* emacs: Add help variables.Alex Kost2015-08-30
| | | | | | | | | | | | | | | | | | | | * emacs/guix-pcomplete.el (guix-pcomplete-parse-package-regexp, guix-pcomplete-parse-command-regexp, guix-pcomplete-parse-long-option-regexp, guix-pcomplete-parse-short-option-regexp, guix-pcomplete-parse-list-regexp, guix-pcomplete-parse-regexp-group, guix-pcomplete-systems, guix-pcomplete-hash-formats, guix-pcomplete-refresh-subsets, guix-pcomplete-key-policies): Move and rename to ... * emacs/guix-help-vars.el (guix-help-parse-package-regexp, guix-help-parse-command-regexp, guix-help-parse-long-option-regexp, guix-help-parse-short-option-regexp, guix-help-parse-list-regexp, guix-help-parse-regexp-group, guix-help-system-types, guix-help-hash-formats, guix-help-refresh-subsets, guix-help-key-policies): ...here. New file. (guix-help-parse-option-regexp, guix-help-source-types, guix-help-verify-options, guix-help-elpa-archives): New variables. * emacs.am (ELFILES): Add "guix-help-vars.el".
* emacs: Add 'guix-package-names'.Alex Kost2015-08-30
| | | | | * emacs/guix-main.scm (package-names, package-names-lists): New procedures. * emacs/guix-base.el (guix-package-names): New function.
* emacs: Add 'guix-graph-type-names'.Alex Kost2015-08-30
| | | | | | * 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: Add 'guix-lint-checker-names'.Alex Kost2015-08-30
| | | | | | * emacs/guix-main.scm: Use (guix scripts lint) module. (lint-checker-names): New procedure. * emacs/guix-base.el (guix-lint-checker-names): New function.
* emacs: Add 'guix-memoized-defalias' macro.Alex Kost2015-08-30
| | | | | * emacs/guix-utils.el (guix-memoized-defalias): New macro. (guix-memoized-font-lock-keywords): New variable.
* emacs: Add 'guix-any'.Alex Kost2015-08-30
| | | | * emacs/guix-utils.el (guix-any): New function.
* emacs: Add utils to copy guix command.Alex Kost2015-08-30
| | | | | * emacs/guix-utils.el (guix-copy-as-kill, guix-copy-command-as-kill): New functions.
* emacs: Add utils to make symbol and string for guix command.Alex Kost2015-08-30
| | | | | * emacs/guix-utils.el (guix-shell-quote-argument, guix-command-symbol, guix-command-string): New functions.
* emacs: Add and use 'guix-concat-strings'.Alex Kost2015-08-30
| | | | | | * emacs/guix-utils.el (guix-concat-strings): New function. * emacs/guix-pcomplete.el (guix-pcomplete-short-options): Use it. * emacs/guix-base.el (guix-get-package-strings): Likewise.
* emacs: Add and use 'guix-while-search'.Alex Kost2015-08-30
| | | | | | * emacs/guix-utils.el (guix-while-search): New macro. * emacs/guix-pcomplete.el (guix-pcomplete-run-guix-and-search): Use it. * emacs/guix-prettify.el (guix-prettify-decompose-buffer): Likewise.
* emacs: Add 'guix-prettify' to 'guix' custom group.Alex Kost2015-08-30
| | | | * emacs/guix-prettify.el (guix-prettify): Add 'guix' group.
* emacs: Remove leftover internal variable.Alex Kost2015-08-30
| | | | | | | This is a followup to commit 74cc67372ec3771b157c015da4ba7ed5d921799f. * emacs/guix-base.el (guix-define-buffer-type): Remove 'mode-map' variable.