guix/doc
Ludovic Courtès 0bb9929eaa
gexp: Add 'with-imported-modules' macro.
* guix/gexp.scm (<gexp>)[modules]: New field.
(gexp-modules): New procedure.
(gexp->derivation): Use it and append the result to %MODULES.
Update docstring to mark #:modules as deprecated.
(current-imported-modules, with-imported-modules): New macros.
(gexp): Pass CURRENT-IMPORTED-MODULES as second argument to 'gexp'.
(gexp->script): Use and honor 'gexp-modules'; define '%modules'.
* tests/gexp.scm ("gexp->derivation & with-imported-modules")
("gexp->derivation & nested with-imported-modules")
("gexp-modules & ungexp", "gexp-modules & ungexp-splicing"):
New tests.
("program-file"): Use 'with-imported-modules'.  Remove #:modules
argument to 'program-file'.
* doc/guix.texi (G-Expressions): Document 'with-imported-modules'.
Mark #:modules of 'gexp->derivation' as deprecated.
* emacs/guix-devel.el: Add syntax for 'with-imported-modules'.
(guix-devel-keywords): Add it.
* .dir-locals.el: Likewise.
2016-07-12 22:47:08 +02:00
..
images guix system: Rename 'dmd-graph' to 'shepherd-graph'. 2016-01-29 20:21:54 +03:00
contributing.texi doc: Mention --localstatedir for when building from Git. 2016-04-16 00:52:19 +02:00
emacs.texi emacs: Add 'guix-package-from-file' command. 2016-05-10 12:05:53 +03:00
environment-gdb.scm doc: Add 'guix environment' examples. 2015-06-29 23:08:36 +02:00
fdl-1.3.texi doc: Add the stub of a manual. 2012-10-13 16:05:01 +02:00
guix.texi gexp: Add 'with-imported-modules' macro. 2016-07-12 22:47:08 +02:00
htmlxref.cnf doc: Fix URL of gnutls-guile one-page-per-node manual. 2016-03-30 23:39:47 +02:00
local.mk build: Use "%D%" in Makefile fragments. 2016-05-24 13:07:19 +02:00
package-hello.scm doc: Use the recommended Scheme format. 2015-09-14 23:10:58 +02:00