Skip to content
Snippets Groups Projects
Unverified Commit 4183105d authored by Maxim Cournoyer's avatar Maxim Cournoyer
Browse files

doc: Follow-up commit to 407ebeaa1.

Following some discussion with Ludovic (see:
https://lists.gnu.org/archive/html/guix-patches/2019-08/msg00506.html), it is
better advice to generally recommend the use of `program-file' for any usage
of modules, not just for those which define syntax.

* doc/guix.texi (Scheduled Job Execution): Drop the following text: "that
defines syntax (macros)".
parent d8f08344
No related branches found
No related tags found
No related merge requests found
......@@ -12443,10 +12443,10 @@ gexps to introduce job definitions that are passed to mcron
@end lisp
 
For more complex jobs defined in Scheme where you need control over the top
level, for instance to introduce a @code{use-modules} form that defines syntax
(macros), you can move your code to a separate program using the
@code{program-file} procedure of the @code{(guix gexp)} module
(@pxref{G-Expressions}). The example below illustrates that.
level, for instance to introduce a @code{use-modules} form, you can move your
code to a separate program using the @code{program-file} procedure of the
@code{(guix gexp)} module (@pxref{G-Expressions}). The example below
illustrates that.
 
@lisp
(define %battery-alert-job
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment